Skip to content

Commit

Permalink
Update Windows metadata, import libraries (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Mar 16, 2022
1 parent 9a539ff commit d511ecc
Show file tree
Hide file tree
Showing 95 changed files with 2,575 additions and 10,764 deletions.
Binary file modified crates/libs/metadata/default/Windows.Win32.Interop.winmd
Binary file not shown.
Binary file modified crates/libs/metadata/default/Windows.Win32.winmd
Binary file not shown.
Binary file modified crates/libs/metadata/default/Windows.winmd
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/libs/metadata/default/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ dependent crate or workspace has an empty or non-existent `.windows/winmd` direc

## Windows.Win32.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Win32Metadata/
- Version: 17.0.9-preview
- Version: 18.0.1-preview

## Windows.winmd
- Source: https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts
- Version: 10.0.22000.194
- Version: 10.0.22000.196

The Windows.winmd was created by merging the .winmd files from the second nuget package as follows

Expand Down
1 change: 0 additions & 1 deletion crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ Win32_System_SettingsManagementInfrastructure = ["Win32_System"]
Win32_System_SetupAndMigration = ["Win32_System"]
Win32_System_Shutdown = ["Win32_System"]
Win32_System_SideShow = ["Win32_System"]
Win32_System_SqlLite = ["Win32_System"]
Win32_System_StationsAndDesktops = ["Win32_System"]
Win32_System_SubsystemForLinux = ["Win32_System"]
Win32_System_SystemInformation = ["Win32_System"]
Expand Down
2 changes: 2 additions & 0 deletions crates/libs/sys/src/Windows/Win32/Foundation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6260,6 +6260,8 @@ pub const STATUS_ABIOS_SELECTOR_NOT_AVAILABLE: NTSTATUS = -1073741547i32;
#[doc = "*Required features: `\"Win32_Foundation\"`*"]
pub const STATUS_ACCESS_AUDIT_BY_POLICY: NTSTATUS = 1073741874i32;
#[doc = "*Required features: `\"Win32_Foundation\"`*"]
pub const STATUS_ACCESS_DENIED: NTSTATUS = -1073741790i32;
#[doc = "*Required features: `\"Win32_Foundation\"`*"]
pub const STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT: NTSTATUS = -1073740959i32;
#[doc = "*Required features: `\"Win32_Foundation\"`*"]
pub const STATUS_ACCESS_DISABLED_BY_POLICY_OTHER: NTSTATUS = -1073740956i32;
Expand Down
56 changes: 0 additions & 56 deletions crates/libs/sys/src/Windows/Win32/Graphics/Gdi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5312,14 +5312,6 @@ pub const HS_API_MAX: u32 = 12u32;
pub type HdcMetdataEnhFileHandle = isize;
pub type HdcMetdataFileHandle = isize;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ICM_DONE_OUTSIDEDC: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ICM_OFF: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ICM_ON: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ICM_QUERY: u32 = 3u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ILLUMINANT_A: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const ILLUMINANT_B: u32 = 2u32;
Expand Down Expand Up @@ -6384,54 +6376,6 @@ pub const PS_JOIN_MITER: PEN_STYLE = 8192u32;
pub const PS_JOIN_MASK: PEN_STYLE = 61440u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PS_TYPE_MASK: PEN_STYLE = 983040u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DEPTH_DONTCARE: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DIRECT3D_ACCELERATED: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DOUBLEBUFFER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DOUBLEBUFFER_DONTCARE: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DRAW_TO_BITMAP: u32 = 8u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_DRAW_TO_WINDOW: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_GENERIC_ACCELERATED: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_GENERIC_FORMAT: u32 = 64u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_MAIN_PLANE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_NEED_PALETTE: u32 = 128u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_NEED_SYSTEM_PALETTE: u32 = 256u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_OVERLAY_PLANE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_STEREO: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_STEREO_DONTCARE: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SUPPORT_COMPOSITION: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SUPPORT_DIRECTDRAW: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SUPPORT_GDI: u32 = 16u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SUPPORT_OPENGL: u32 = 32u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SWAP_COPY: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SWAP_EXCHANGE: u32 = 512u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_SWAP_LAYER_BUFFERS: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_TYPE_COLORINDEX: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_TYPE_RGBA: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub const PFD_UNDERLAY_PLANE: i32 = -1i32;
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"]
pub struct POINTFX {
Expand Down
62 changes: 58 additions & 4 deletions crates/libs/sys/src/Windows/Win32/Graphics/OpenGL/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extern "system" {
pub fn ChoosePixelFormat(hdc: super::Gdi::HDC, ppfd: *const PIXELFORMATDESCRIPTOR) -> i32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(feature = "Win32_Graphics_Gdi")]
pub fn DescribePixelFormat(hdc: super::Gdi::HDC, ipixelformat: i32, nbytes: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> i32;
pub fn DescribePixelFormat(hdc: super::Gdi::HDC, ipixelformat: PFD_PIXEL_TYPE, nbytes: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> i32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(feature = "Win32_Graphics_Gdi")]
pub fn GetEnhMetaFilePixelFormat(hemf: super::Gdi::HENHMETAFILE, cbbuffer: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> u32;
Expand Down Expand Up @@ -2355,6 +2355,60 @@ impl ::core::clone::Clone for LAYERPLANEDESCRIPTOR {
}
}
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub type PFD_FLAGS = u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DOUBLEBUFFER: PFD_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_STEREO: PFD_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DRAW_TO_WINDOW: PFD_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DRAW_TO_BITMAP: PFD_FLAGS = 8u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SUPPORT_GDI: PFD_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SUPPORT_OPENGL: PFD_FLAGS = 32u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_GENERIC_FORMAT: PFD_FLAGS = 64u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_NEED_PALETTE: PFD_FLAGS = 128u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_NEED_SYSTEM_PALETTE: PFD_FLAGS = 256u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SWAP_EXCHANGE: PFD_FLAGS = 512u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SWAP_COPY: PFD_FLAGS = 1024u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SWAP_LAYER_BUFFERS: PFD_FLAGS = 2048u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_GENERIC_ACCELERATED: PFD_FLAGS = 4096u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SUPPORT_DIRECTDRAW: PFD_FLAGS = 8192u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DIRECT3D_ACCELERATED: PFD_FLAGS = 16384u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_SUPPORT_COMPOSITION: PFD_FLAGS = 32768u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DEPTH_DONTCARE: PFD_FLAGS = 536870912u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_DOUBLEBUFFER_DONTCARE: PFD_FLAGS = 1073741824u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_STEREO_DONTCARE: PFD_FLAGS = 2147483648u32;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub type PFD_LAYER_TYPE = i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_UNDERLAY_PLANE: PFD_LAYER_TYPE = -1i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_MAIN_PLANE: PFD_LAYER_TYPE = 0i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_OVERLAY_PLANE: PFD_LAYER_TYPE = 1i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub type PFD_PIXEL_TYPE = i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_TYPE_RGBA: PFD_PIXEL_TYPE = 0i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub const PFD_TYPE_COLORINDEX: PFD_PIXEL_TYPE = 1i8;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub type PFNGLADDSWAPHINTRECTWINPROC = ::core::option::Option<unsafe extern "system" fn(x: i32, y: i32, width: i32, height: i32)>;
#[doc = "*Required features: `\"Win32_Graphics_OpenGL\"`*"]
pub type PFNGLARRAYELEMENTARRAYEXTPROC = ::core::option::Option<unsafe extern "system" fn(mode: u32, count: i32, pi: *const ::core::ffi::c_void)>;
Expand Down Expand Up @@ -2393,8 +2447,8 @@ pub type PFNGLVERTEXPOINTEREXTPROC = ::core::option::Option<unsafe extern "syste
pub struct PIXELFORMATDESCRIPTOR {
pub nSize: u16,
pub nVersion: u16,
pub dwFlags: u32,
pub iPixelType: u8,
pub dwFlags: PFD_FLAGS,
pub iPixelType: PFD_PIXEL_TYPE,
pub cColorBits: u8,
pub cRedBits: u8,
pub cRedShift: u8,
Expand All @@ -2412,7 +2466,7 @@ pub struct PIXELFORMATDESCRIPTOR {
pub cDepthBits: u8,
pub cStencilBits: u8,
pub cAuxBuffers: u8,
pub iLayerType: u8,
pub iLayerType: PFD_LAYER_TYPE,
pub bReserved: u8,
pub dwLayerMask: u32,
pub dwVisibleMask: u32,
Expand Down
67 changes: 32 additions & 35 deletions crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3862,8 +3862,8 @@ impl ::core::clone::Clone for JOB_INFO_1W {
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct JOB_INFO_2A {
pub JobId: u32,
pub pPrinterName: ::windows_sys::core::PSTR,
Expand All @@ -3877,7 +3877,7 @@ pub struct JOB_INFO_2A {
pub pDriverName: ::windows_sys::core::PSTR,
pub pDevMode: *mut super::Gdi::DEVMODEA,
pub pStatus: ::windows_sys::core::PSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Status: u32,
pub Priority: u32,
pub Position: u32,
Expand All @@ -3889,17 +3889,17 @@ pub struct JOB_INFO_2A {
pub Time: u32,
pub PagesPrinted: u32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for JOB_INFO_2A {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for JOB_INFO_2A {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct JOB_INFO_2W {
pub JobId: u32,
pub pPrinterName: ::windows_sys::core::PWSTR,
Expand All @@ -3913,7 +3913,7 @@ pub struct JOB_INFO_2W {
pub pDriverName: ::windows_sys::core::PWSTR,
pub pDevMode: *mut super::Gdi::DEVMODEW,
pub pStatus: ::windows_sys::core::PWSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Status: u32,
pub Priority: u32,
pub Position: u32,
Expand All @@ -3925,9 +3925,9 @@ pub struct JOB_INFO_2W {
pub Time: u32,
pub PagesPrinted: u32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for JOB_INFO_2W {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for JOB_INFO_2W {
fn clone(&self) -> Self {
*self
Expand All @@ -3947,8 +3947,8 @@ impl ::core::clone::Clone for JOB_INFO_3 {
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct JOB_INFO_4A {
pub JobId: u32,
pub pPrinterName: ::windows_sys::core::PSTR,
Expand All @@ -3962,7 +3962,7 @@ pub struct JOB_INFO_4A {
pub pDriverName: ::windows_sys::core::PSTR,
pub pDevMode: *mut super::Gdi::DEVMODEA,
pub pStatus: ::windows_sys::core::PSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Status: u32,
pub Priority: u32,
pub Position: u32,
Expand All @@ -3975,17 +3975,17 @@ pub struct JOB_INFO_4A {
pub PagesPrinted: u32,
pub SizeHigh: i32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for JOB_INFO_4A {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for JOB_INFO_4A {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct JOB_INFO_4W {
pub JobId: u32,
pub pPrinterName: ::windows_sys::core::PWSTR,
Expand All @@ -3999,7 +3999,7 @@ pub struct JOB_INFO_4W {
pub pDriverName: ::windows_sys::core::PWSTR,
pub pDevMode: *mut super::Gdi::DEVMODEW,
pub pStatus: ::windows_sys::core::PWSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Status: u32,
pub Priority: u32,
pub Position: u32,
Expand All @@ -4012,9 +4012,9 @@ pub struct JOB_INFO_4W {
pub PagesPrinted: u32,
pub SizeHigh: i32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for JOB_INFO_4W {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for JOB_INFO_4W {
fn clone(&self) -> Self {
*self
Expand Down Expand Up @@ -5633,8 +5633,8 @@ impl ::core::clone::Clone for PRINTER_INFO_1W {
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct PRINTER_INFO_2A {
pub pServerName: ::windows_sys::core::PSTR,
pub pPrinterName: ::windows_sys::core::PSTR,
Expand All @@ -5648,7 +5648,7 @@ pub struct PRINTER_INFO_2A {
pub pPrintProcessor: ::windows_sys::core::PSTR,
pub pDatatype: ::windows_sys::core::PSTR,
pub pParameters: ::windows_sys::core::PSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Attributes: u32,
pub Priority: u32,
pub DefaultPriority: u32,
Expand All @@ -5658,17 +5658,17 @@ pub struct PRINTER_INFO_2A {
pub cJobs: u32,
pub AveragePPM: u32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for PRINTER_INFO_2A {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for PRINTER_INFO_2A {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct PRINTER_INFO_2W {
pub pServerName: ::windows_sys::core::PWSTR,
pub pPrinterName: ::windows_sys::core::PWSTR,
Expand All @@ -5682,7 +5682,7 @@ pub struct PRINTER_INFO_2W {
pub pPrintProcessor: ::windows_sys::core::PWSTR,
pub pDatatype: ::windows_sys::core::PWSTR,
pub pParameters: ::windows_sys::core::PWSTR,
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
pub Attributes: u32,
pub Priority: u32,
pub DefaultPriority: u32,
Expand All @@ -5692,23 +5692,20 @@ pub struct PRINTER_INFO_2W {
pub cJobs: u32,
pub AveragePPM: u32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for PRINTER_INFO_2W {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Security"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for PRINTER_INFO_2W {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"]
pub struct PRINTER_INFO_3 {
pub pSecurityDescriptor: *mut super::super::Security::SECURITY_DESCRIPTOR,
pub pSecurityDescriptor: *mut ::core::ffi::c_void,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
impl ::core::marker::Copy for PRINTER_INFO_3 {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
impl ::core::clone::Clone for PRINTER_INFO_3 {
fn clone(&self) -> Self {
*self
Expand Down
Loading

0 comments on commit d511ecc

Please sign in to comment.