Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified crates/libs/bindgen/default/Windows.Win32.winmd
Binary file not shown.
18 changes: 10 additions & 8 deletions crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ adshlp = ["iads", "minwinbase", "minwindef", "oaidl", "winnt", "wtypes", "wtypes
adtgen = ["winnt"]
afunix = ["ws2"]
amsi = []
amvideo = ["mediaobj", "windef", "wingdi"]
amvideo = ["ksmedia", "windef", "wingdi"]
appmodel = ["minwindef", "winnt"]
appxpackaging = ["objidlbase", "urlmon"]
asferr = []
Expand Down Expand Up @@ -116,6 +116,7 @@ dde = ["minwindef", "windef", "winnt"]
ddeml = ["minwindef", "windef", "winnt"]
ddraw = ["ksmedia", "windef"]
debugapi = ["minwinbase", "winnt"]
devicetopology = []
devpkey = ["devpropdef"]
devpropdef = []
dhcpsapi = ["minwindef"]
Expand All @@ -131,7 +132,7 @@ dpa_dsa = ["minwindef", "objidlbase", "winnt"]
dpapi = ["wincrypt", "windef", "winnt"]
dsgetdc = ["lsalookup", "minwindef", "ntsecapi", "winnt", "ws2"]
dshow = []
dsound = ["mediaobj", "mmeapi", "windef", "winnt"]
dsound = ["ksmedia", "mmeapi", "windef", "winnt"]
dsparse = ["winnt"]
dsrole = ["minwindef"]
dvdevcod = []
Expand All @@ -140,10 +141,11 @@ dwrite = ["dcommon", "dxgi", "windef"]
dxcore = []
dxcore_interface = []
dxgi = ["windef", "winnt"]
dxva2api = ["d3d9", "mediaobj", "windef"]
dxva2api = ["d3d9", "ksmedia", "windef"]
eaptypes = []
edevdefs = []
enclaveapi = ["minwinbase", "winnt"]
endpointvolume = []
errhandlingapi = ["winnt"]
errors = []
esent = []
Expand Down Expand Up @@ -220,7 +222,7 @@ jobapi2 = ["minwinbase", "winnt"]
joystickapi = ["mmsyscom", "windef"]
kernelspecs = []
ks = ["winnt"]
ksmedia = ["basetsd", "devpropdef", "ks", "mediaobj", "mmeapi", "mmreg", "windef", "winnt"]
ksmedia = ["basetsd", "devpropdef", "ks", "mmeapi", "windef", "winnt"]
ktmtypes = []
ktmw32 = ["ktmtypes", "minwinbase", "winnt"]
l2cmn = []
Expand Down Expand Up @@ -248,10 +250,10 @@ magnification = ["minwindef", "wincodec", "windef"]
mce = []
mciapi = ["minwindef", "windef", "winnt"]
mcx = []
mediaobj = []
mediaobj = ["ksmedia"]
memoryapi = ["minwinbase", "winnt"]
memorybuffer = []
mfapi = ["amvideo", "dxgi", "mediaobj", "mfobjects", "minwinbase", "minwindef", "mmeapi", "oaidl", "objidl", "objidlbase", "propidlbase", "strmif", "unknwnbase", "windef", "wingdi", "winnt", "wtypes", "wtypesbase"]
mfapi = ["amvideo", "dxgi", "ksmedia", "mediaobj", "mfobjects", "minwinbase", "minwindef", "mmeapi", "oaidl", "objidl", "objidlbase", "propidlbase", "strmif", "unknwnbase", "windef", "wingdi", "winnt", "wtypes", "wtypesbase"]
mfcaptureengine = []
mfcontentdecryptionmodule = ["mfidl", "mfobjects", "objidlbase"]
mfd3d12 = ["d3d12"]
Expand All @@ -274,7 +276,7 @@ mmdeviceapi = ["minwindef", "oaidl", "objidl", "objidlbase", "propidlbase", "wty
mmeapi = ["mmsyscom", "windef"]
mmiscapi = ["minwindef", "mmsyscom", "winnt"]
mmiscapi2 = ["mmsyscom"]
mmreg = ["mmeapi", "wingdi"]
mmreg = ["ksmedia", "mmeapi", "wingdi"]
mmsyscom = []
mmsystem = []
mprapi = ["in6addr", "inaddr", "minwindef", "wincrypt", "winnt"]
Expand Down Expand Up @@ -431,7 +433,7 @@ stierr = []
stireg = ["devpropdef"]
stralign = ["winnt"]
stringapiset = ["minwindef", "winnls", "winnt"]
strmif = ["ddraw", "dsound", "ksmedia", "mediaobj", "oaidl", "objidl", "windef", "wingdi", "winnt"]
strmif = ["ddraw", "dsound", "ksmedia", "oaidl", "objidl", "windef", "wingdi", "winnt"]
strsafe = []
structuredquery = []
structuredquerycondition = ["objidl"]
Expand Down
22 changes: 11 additions & 11 deletions crates/libs/sys/src/Windows/amvideo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ pub const AM_PROPERTY_FRAMESTEP_CANSTEP: AM_PROPERTY_FRAMESTEP = 3;
pub const AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE: AM_PROPERTY_FRAMESTEP = 4;
pub const AM_PROPERTY_FRAMESTEP_STEP: AM_PROPERTY_FRAMESTEP = 1;
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef"))]
#[cfg(all(feature = "ksmedia", feature = "windef"))]
#[derive(Clone, Copy, Default)]
pub struct ANALOGVIDEOINFO {
pub rcSource: super::windef::RECT,
pub rcTarget: super::windef::RECT,
pub dwActiveWidth: u32,
pub dwActiveHeight: u32,
pub AvgTimePerFrame: super::mediaobj::REFERENCE_TIME,
pub AvgTimePerFrame: super::ksmedia::REFERENCE_TIME,
}
pub const MAX_SIZE_MPEG1_SEQUENCE_INFO: u32 = 140;
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
#[derive(Clone, Copy)]
pub struct MPEG1VIDEOINFO {
pub hdr: VIDEOINFOHEADER,
pub dwStartTimeCode: u32,
pub cbSequenceHeader: u32,
pub bSequenceHeader: [u8; 1],
}
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
impl Default for MPEG1VIDEOINFO {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand All @@ -63,46 +63,46 @@ impl Default for TRUECOLORINFO {
}
}
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
#[derive(Clone, Copy)]
pub struct VIDEOINFO {
pub rcSource: super::windef::RECT,
pub rcTarget: super::windef::RECT,
pub dwBitRate: u32,
pub dwBitErrorRate: u32,
pub AvgTimePerFrame: super::mediaobj::REFERENCE_TIME,
pub AvgTimePerFrame: super::ksmedia::REFERENCE_TIME,
pub bmiHeader: super::wingdi::BITMAPINFOHEADER,
pub Anonymous: VIDEOINFO_0,
}
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
impl Default for VIDEOINFO {
fn default() -> Self {
unsafe { core::mem::zeroed() }
}
}
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
#[derive(Clone, Copy)]
pub union VIDEOINFO_0 {
pub bmiColors: [super::wingdi::RGBQUAD; 256],
pub dwBitMasks: [u32; 3],
pub TrueColorInfo: TRUECOLORINFO,
}
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
impl Default for VIDEOINFO_0 {
fn default() -> Self {
unsafe { core::mem::zeroed() }
}
}
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef", feature = "wingdi"))]
#[cfg(all(feature = "ksmedia", feature = "windef", feature = "wingdi"))]
#[derive(Clone, Copy, Default)]
pub struct VIDEOINFOHEADER {
pub rcSource: super::windef::RECT,
pub rcTarget: super::windef::RECT,
pub dwBitRate: u32,
pub dwBitErrorRate: u32,
pub AvgTimePerFrame: super::mediaobj::REFERENCE_TIME,
pub AvgTimePerFrame: super::ksmedia::REFERENCE_TIME,
pub bmiHeader: super::wingdi::BITMAPINFOHEADER,
}
pub const iBLUE: u32 = 2;
Expand Down
16 changes: 16 additions & 0 deletions crates/libs/sys/src/Windows/devicetopology/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pub const Connector: PartType = 0;
pub type ConnectorType = i32;
pub const DEVTOPO_HARDWARE_INITIATED_EVENTCONTEXT: u32 = 1685217608;
pub type DataFlow = i32;
pub const DeviceTopology: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x1df639d0_5ec1_47aa_9379_828dc1aa8c59);
pub const EVENTCONTEXT_VOLUMESLIDER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe2c2e9de_09b1_4b04_84e5_07931225ee04);
pub const In: DataFlow = 0;
pub const Network: ConnectorType = 5;
pub const Out: DataFlow = 1;
pub type PartType = i32;
pub const Physical_External: ConnectorType = 2;
pub const Physical_Internal: ConnectorType = 1;
pub const Software_Fixed: ConnectorType = 4;
pub const Software_IO: ConnectorType = 3;
pub const Subunit: PartType = 1;
pub const Unknown_Connector: ConnectorType = 0;
4 changes: 2 additions & 2 deletions crates/libs/sys/src/Windows/dsound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,5 +714,5 @@ pub type LPLPDIRECTSOUNDCAPTURE8 = *mut *mut core::ffi::c_void;
pub type LPLPDIRECTSOUNDCAPTUREBUFFER = *mut *mut core::ffi::c_void;
pub type LPLPDIRECTSOUNDCAPTUREBUFFER8 = *mut *mut core::ffi::c_void;
pub type LPLPDIRECTSOUNDNOTIFY = *mut *mut core::ffi::c_void;
#[cfg(feature = "mediaobj")]
pub type LPREFERENCE_TIME = *mut super::mediaobj::REFERENCE_TIME;
#[cfg(feature = "ksmedia")]
pub type LPREFERENCE_TIME = *mut super::ksmedia::REFERENCE_TIME;
14 changes: 7 additions & 7 deletions crates/libs/sys/src/Windows/dxva2api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ pub const DXVA2_VideoProcBobDevice: windows_sys::core::GUID = windows_sys::core:
pub const DXVA2_VideoProcProgressiveDevice: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x5a54a0c9_c7ec_4bd9_8ede_f3c75dc4393b);
pub const DXVA2_VideoProcSoftwareDevice: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4553d47f_ee7e_4e3f_9475_dbf1376c4810);
#[repr(C)]
#[cfg(all(feature = "mediaobj", feature = "windef"))]
#[cfg(all(feature = "ksmedia", feature = "windef"))]
#[derive(Clone, Copy)]
pub struct DXVA2_VideoProcessBltParams {
pub TargetFrame: super::mediaobj::REFERENCE_TIME,
pub TargetFrame: super::ksmedia::REFERENCE_TIME,
pub TargetRect: super::windef::RECT,
pub ConstrictionSize: super::windef::SIZE,
pub StreamingFlags: u32,
Expand All @@ -380,7 +380,7 @@ pub struct DXVA2_VideoProcessBltParams {
pub DetailFilterChroma: DXVA2_FilterValues,
pub DestData: u32,
}
#[cfg(all(feature = "mediaobj", feature = "windef"))]
#[cfg(all(feature = "ksmedia", feature = "windef"))]
impl Default for DXVA2_VideoProcessBltParams {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand Down Expand Up @@ -421,11 +421,11 @@ pub struct DXVA2_VideoProcessorCaps {
}
pub const DXVA2_VideoProcessorRenderTarget: i32 = 1;
#[repr(C)]
#[cfg(all(feature = "d3d9", feature = "mediaobj", feature = "windef"))]
#[cfg(all(feature = "d3d9", feature = "ksmedia", feature = "windef"))]
#[derive(Clone, Copy)]
pub struct DXVA2_VideoSample {
pub Start: super::mediaobj::REFERENCE_TIME,
pub End: super::mediaobj::REFERENCE_TIME,
pub Start: super::ksmedia::REFERENCE_TIME,
pub End: super::ksmedia::REFERENCE_TIME,
pub SampleFormat: DXVA2_ExtendedFormat,
pub SrcSurface: *mut core::ffi::c_void,
pub SrcRect: super::windef::RECT,
Expand All @@ -434,7 +434,7 @@ pub struct DXVA2_VideoSample {
pub PlanarAlpha: DXVA2_Fixed32,
pub SampleData: u32,
}
#[cfg(all(feature = "d3d9", feature = "mediaobj", feature = "windef"))]
#[cfg(all(feature = "d3d9", feature = "ksmedia", feature = "windef"))]
impl Default for DXVA2_VideoSample {
fn default() -> Self {
unsafe { core::mem::zeroed() }
Expand Down
18 changes: 18 additions & 0 deletions crates/libs/sys/src/Windows/endpointvolume/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#[repr(C)]
#[derive(Clone, Copy)]
pub struct AUDIO_VOLUME_NOTIFICATION_DATA {
pub guidEventContext: windows_sys::core::GUID,
pub bMuted: windows_sys::core::BOOL,
pub fMasterVolume: f32,
pub nChannels: u32,
pub afChannelVolumes: [f32; 1],
}
impl Default for AUDIO_VOLUME_NOTIFICATION_DATA {
fn default() -> Self {
unsafe { core::mem::zeroed() }
}
}
pub const ENDPOINT_HARDWARE_SUPPORT_METER: u32 = 4;
pub const ENDPOINT_HARDWARE_SUPPORT_MUTE: u32 = 2;
pub const ENDPOINT_HARDWARE_SUPPORT_VOLUME: u32 = 1;
pub type PAUDIO_VOLUME_NOTIFICATION_DATA = *mut AUDIO_VOLUME_NOTIFICATION_DATA;
Loading
Loading