Skip to content

Commit

Permalink
Add additional device partitions (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Nov 11, 2024
1 parent 5c95f73 commit 66962fb
Show file tree
Hide file tree
Showing 13 changed files with 464 additions and 1 deletion.
5 changes: 5 additions & 0 deletions generation/WinSDK/Partitions/Devices.1394/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "intrinfix.h"
#include "windows.fixed.h"
#include <sdkddkver.h>
#include <devioctl.h>
#include <ntdd1394.h>
7 changes: 7 additions & 0 deletions generation/WinSDK/Partitions/Devices.1394/settings.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--traverse
<IncludeRoot>/shared/ntdd1394.h
--namespace
Windows.Win32.Devices.1394
--remap
_IEEE1394_VDEV_PNP_REQUEST=IEEE1394_VDEV_PNP_REQUEST
_IEEE1394_API_REQUEST=IEEE1394_API_REQUEST
5 changes: 5 additions & 0 deletions generation/WinSDK/Partitions/Devices.Beep/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "intrinfix.h"
#include "windows.fixed.h"
#include <sdkddkver.h>
#include <devioctl.h>
#include <ntddbeep.h>
6 changes: 6 additions & 0 deletions generation/WinSDK/Partitions/Devices.Beep/settings.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--traverse
<IncludeRoot>/shared/ntddbeep.h
--namespace
Windows.Win32.Devices.Beep
--remap
_BEEP_SET_PARAMETERS=BEEP_SET_PARAMETERS
5 changes: 5 additions & 0 deletions generation/WinSDK/Partitions/Devices.Cdrom/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "intrinfix.h"
#include "windows.fixed.h"
#include <sdkddkver.h>
#include <devioctl.h>
#include <ntddcdrm.h>
51 changes: 51 additions & 0 deletions generation/WinSDK/Partitions/Devices.Cdrom/settings.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
--traverse
<IncludeRoot>/shared/ntddcdrm.h
--namespace
Windows.Win32.Devices.Cdrom
--remap
_CDROM_READ_TOC_EX=CDROM_READ_TOC_EX
_TRACK_DATA=TRACK_DATA
_CDROM_TOC=CDROM_TOC
_CDROM_TOC_SESSION_DATA=CDROM_TOC_SESSION_DATA
_CDROM_TOC_FULL_TOC_DATA_BLOCK=CDROM_TOC_FULL_TOC_DATA_BLOCK
_CDROM_TOC_FULL_TOC_DATA=CDROM_TOC_FULL_TOC_DATA
_CDROM_TOC_PMA_DATA=CDROM_TOC_PMA_DATA
_CDROM_TOC_ATIP_DATA_BLOCK=CDROM_TOC_ATIP_DATA_BLOCK
_CDROM_TOC_ATIP_DATA=CDROM_TOC_ATIP_DATA
_CDROM_TOC_CD_TEXT_DATA_BLOCK=CDROM_TOC_CD_TEXT_DATA_BLOCK
_CDROM_TOC_CD_TEXT_DATA=CDROM_TOC_CD_TEXT_DATA
_CDROM_PLAY_AUDIO_MSF=CDROM_PLAY_AUDIO_MSF
_CDROM_SEEK_AUDIO_MSF=CDROM_SEEK_AUDIO_MSF
_CDROM_DISK_DATA=CDROM_DISK_DATA
_CDROM_SUB_Q_DATA_FORMAT=CDROM_SUB_Q_DATA_FORMAT
_SUB_Q_HEADER=SUB_Q_HEADER
_SUB_Q_CURRENT_POSITION=SUB_Q_CURRENT_POSITION
_SUB_Q_MEDIA_CATALOG_NUMBER=SUB_Q_MEDIA_CATALOG_NUMBER
_SUB_Q_TRACK_ISRC=SUB_Q_TRACK_ISRC
_SUB_Q_CHANNEL_DATA=SUB_Q_CHANNEL_DATA
_VOLUME_CONTROL=VOLUME_CONTROL
_TRACK_MODE_TYPE=TRACK_MODE_TYPE
__RAW_READ_INFO=RAW_READ_INFO
_MEDIA_BLANK_TYPE=MEDIA_BLANK_TYPE
_EXCLUSIVE_ACCESS_REQUEST_TYPE=EXCLUSIVE_ACCESS_REQUEST_TYPE
_CDROM_EXCLUSIVE_ACCESS=CDROM_EXCLUSIVE_ACCESS
_CDROM_EXCLUSIVE_LOCK=CDROM_EXCLUSIVE_LOCK
_CDROM_EXCLUSIVE_LOCK_STATE=CDROM_EXCLUSIVE_LOCK_STATE
_CDROM_SPEED_REQUEST=CDROM_SPEED_REQUEST
_WRITE_ROTATION=WRITE_ROTATION
_CDROM_SET_SPEED=CDROM_SET_SPEED
_CDROM_SET_STREAMING=CDROM_SET_STREAMING
_STREAMING_CONTROL_REQUEST_TYPE=STREAMING_CONTROL_REQUEST_TYPE
_CDROM_STREAMING_CONTROL=CDROM_STREAMING_CONTROL
_CDROM_OPC_INFO_TYPE=CDROM_OPC_INFO_TYPE
_CDROM_SIMPLE_OPC_INFO=CDROM_SIMPLE_OPC_INFO
_CDROM_PERFORMANCE_REQUEST_TYPE=CDROM_PERFORMANCE_REQUEST_TYPE
_CDROM_PERFORMANCE_TYPE=CDROM_PERFORMANCE_TYPE
_CDROM_PERFORMANCE_EXCEPTION_TYPE=CDROM_PERFORMANCE_EXCEPTION_TYPE
_CDROM_PERFORMANCE_TOLERANCE_TYPE=CDROM_PERFORMANCE_TOLERANCE_TYPE
_CDROM_PERFORMANCE_REQUEST=CDROM_PERFORMANCE_REQUEST
_CDROM_WRITE_SPEED_REQUEST=CDROM_WRITE_SPEED_REQUEST
_CDROM_PERFORMANCE_HEADER=CDROM_PERFORMANCE_HEADER
_CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR=CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR
_CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR=CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR
_CDROM_WRITE_SPEED_DESCRIPTOR=CDROM_WRITE_SPEED_DESCRIPTOR
5 changes: 5 additions & 0 deletions generation/WinSDK/Partitions/Devices.Dvd/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "intrinfix.h"
#include "windows.fixed.h"
#include <sdkddkver.h>
#include <devioctl.h>
#include <ntddcdvd.h>
53 changes: 53 additions & 0 deletions generation/WinSDK/Partitions/Devices.Dvd/settings.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
--traverse
<IncludeRoot>/shared/ntddcdvd.h
--namespace
Windows.Win32.Devices.Dvd
--remap
_DVD_COPY_PROTECT_KEY=DVD_COPY_PROTECT_KEY
_STORAGE_SET_READ_AHEAD=STORAGE_SET_READ_AHEAD
_DVD_DESCRIPTOR_HEADER=DVD_DESCRIPTOR_HEADER
_DVD_LAYER_DESCRIPTOR=DVD_LAYER_DESCRIPTOR
_DVD_FULL_LAYER_DESCRIPTOR=DVD_FULL_LAYER_DESCRIPTOR
_DVD_COPYRIGHT_DESCRIPTOR=DVD_COPYRIGHT_DESCRIPTOR
_DVD_DISK_KEY_DESCRIPTOR=DVD_DISK_KEY_DESCRIPTOR
_DVD_BCA_DESCRIPTOR=DVD_BCA_DESCRIPTOR
_DVD_MANUFACTURER_DESCRIPTOR=DVD_MANUFACTURER_DESCRIPTOR
_DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR=DVD_COPYRIGHT_MANAGEMENT_DESCRIPTOR
_DVD_RAM_MEDIUM_STATUS=DVD_RAM_MEDIUM_STATUS
_DVD_RAM_SPARE_AREA_INFORMATION=DVD_RAM_SPARE_AREA_INFORMATION
_DVD_RAM_RECORDING_TYPE=DVD_RAM_RECORDING_TYPE
_DVD_RECORDING_MANAGEMENT_AREA_DATA=DVD_RECORDING_MANAGEMENT_AREA_DATA
_DVD_PRERECORDED_INFORMATION=DVD_PRERECORDED_INFORMATION
_DVD_UNIQUE_DISC_IDENTIFIER=DVD_UNIQUE_DISC_IDENTIFIER
_HD_DVD_R_MEDIUM_STATUS=HD_DVD_R_MEDIUM_STATUS
_DVD_DUAL_LAYER_RECORDING_INFORMATION=DVD_DUAL_LAYER_RECORDING_INFORMATION
_DVD_DUAL_LAYER_MIDDLE_ZONE_START_ADDRESS=DVD_DUAL_LAYER_MIDDLE_ZONE_START_ADDRESS
_DVD_DUAL_LAYER_JUMP_INTERVAL_SIZE=DVD_DUAL_LAYER_JUMP_INTERVAL_SIZE
_DVD_DUAL_LAYER_MANUAL_LAYER_JUMP=DVD_DUAL_LAYER_MANUAL_LAYER_JUMP
_DVD_DUAL_LAYER_REMAPPING_INFORMATION=DVD_DUAL_LAYER_REMAPPING_INFORMATION
_DVD_DISC_CONTROL_BLOCK_HEADER=DVD_DISC_CONTROL_BLOCK_HEADER
_DISC_CONTROL_BLOCK_TYPE=DISC_CONTROL_BLOCK_TYPE
_DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT=DVD_DISC_CONTROL_BLOCK_WRITE_INHIBIT
_DVD_DISC_CONTROL_BLOCK_SESSION_ITEM=DVD_DISC_CONTROL_BLOCK_SESSION_ITEM
_DVD_DISC_CONTROL_BLOCK_SESSION=DVD_DISC_CONTROL_BLOCK_SESSION
_DVD_DISC_CONTROL_BLOCK_LIST_DCB=DVD_DISC_CONTROL_BLOCK_LIST_DCB
_DVD_DISC_CONTROL_BLOCK_LIST=DVD_DISC_CONTROL_BLOCK_LIST
_DVD_WRITE_PROTECTION_STATUS=DVD_WRITE_PROTECTION_STATUS
_DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS_TYPE_CODE=DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS
_DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS=DVD_LIST_OF_RECOGNIZED_FORMAT_LAYERS_TYPE_CODE
_DVD_STRUCTURE_LIST_ENTRY=DVD_STRUCTURE_LIST_ENTRY
_DVD_BD_SPARE_AREA_INFORMATION=DVD_BD_SPARE_AREA_INFORMATION
_BD_PAC_HEADER=BD_PAC_HEADER
_BD_DISC_WRITE_PROTECT_PAC=BD_DISC_WRITE_PROTECT_PAC
_DVD_RPC_KEY=DVD_RPC_KEY
_DVD_SET_RPC_KEY=DVD_SET_RPC_KEY
_DVD_ASF=DVD_ASF
_AACS_CERTIFICATE=AACS_CERTIFICATE
_AACS_CHALLENGE_KEY=AACS_CHALLENGE_KEY
_AACS_VOLUME_ID=AACS_VOLUME_ID
_AACS_SERIAL_NUMBER=AACS_SERIAL_NUMBER
_AACS_MEDIA_ID=AACS_MEDIA_ID
_AACS_SEND_CERTIFICATE=AACS_SEND_CERTIFICATE
_AACS_SEND_CHALLENGE_KEY=AACS_SEND_CHALLENGE_KEY
_AACS_BINDING_NONCE=AACS_BINDING_NONCE
_AACS_READ_BINDING_NONCE=AACS_READ_BINDING_NONCE
2 changes: 2 additions & 0 deletions generation/WinSDK/Partitions/Media.DShow/settings.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@
<IncludeRoot>/um/xprtdefs.h
--namespace
Windows.Win32.Media.DirectShow
--exclude
_DVD_REGION
2 changes: 1 addition & 1 deletion generation/WinSDK/Windows.Win32.proj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<ShowEmitWinmdOutputDetails>true</ShowEmitWinmdOutputDetails>

<!-- To regenerate this list; remove the property and the build will indicate what names can safely go here as a build optimization -->
<ExcludeFromCrossarch>ActiveDirectory;AllJoyn;Antimalware;ApplicationVerifier;Audio.Apo;Audio.DirectMusic;Audio.DirectSound;Audio.Endpoints;Authorization;Authorization.UI;Base;Bits;Bluetooth;Buses;CEIP;Certificates;Cloudapi;ClrHosting;ClrProfiling;CmpApi;Com;Com.CallObj;Com.ChannelCreds;Com.Events;Com.StructuredStorage;Com.Urlmon;Communication;ComOle;CompositionSwapchain;Console;Cos;Credentials;DataXchg;Debug.ActiveScript;Debug.Extensions;Debug.WebApp;Dedup;DeviceAccess;DeviceQuery;Devices.Properties;DevLic;Dhcp;Direct2D;Direct2D.Common;Direct3D;Direct3D10;Direct3D11;Direct3D11on12;Direct3D12;Direct3D9on12;Direct3DDxc;Direct3DFxc;DirectComp;DirectDraw;DirectManipulation;DirectML;DirectWrite;Dlna;DTC;Dwm;DXCore;Dxgi;Dxgi.Common;Eap;EapHost;Edp;Enstor;Environment;Etw;Fax;FileHistory;Foundation;Fs;Fsrm;FunctionDiscovery;GameMode;GamingDvcInfo;Gdi;Gdiplus;Gpmc;HostComputeNetwork;HostComputeSystem;HtmlHelp;HttpServer;Hypervisor;Identity;IdentityProvider;Ifsk;Iis;ImagingDevice;IMapi;IndexSrv;Input_Ink;Input_IntContext;Input.Ime;InputRadial;InternetConnectionWizard;InternetExplorer;Intl;IO;Isolation;JobObjects;Kernel;KeyboardAndMouseInput;Ldap;LibraryLoader;Lwef;MachineLearning;MadCap;MagApi;Mapi;Mbn;MdmReg;Media;Media.DShow;Media.DShow.Xml;Media.DxMediaObjects;Memory;MessageQueuing;Mi;MixedReality;MixedRealityInterop;Mmc;Monitor;MsChap;MsCs;MsHtml;MsTv;MsXml;Multimedia;Ndf;Ndis;NetMgmt;NetShell;NetworkAccessProtection;Nfc;Nfp;Nla;Nps;NWifi;Of;Opc;OpenGL;P2p;Parcon;PicAcq;Pipes;Pla;Policy;Power;PrintTicket;Proc_Snap;ProjFs;Properties;PsApi1;PsApi2;PWM;Qos;Rdc;Rdp;RealTimeCommunications;Registry;RemoteAssist;Rm;Rpc;RstMgr;SecBitomet;Security;Security.AppLocker;Security.ConfigurationSnapin;Security.Cryptography;Security.Cryptography.Catalog;Security.Cryptography.Sip;Security.Cryptography.UI;Security.DiagnosticDataQuery;Security.DirectoryServices;Security.LicenseProtection;Security.Tpm;Security.WinTrust;Security.WinWlx;SecurityCenter;Sens;SerPorts;Services;Setup;Shell.Common;Shutdown;SideShow;Smi;Speech;Sr;Storage.Nvme;SwDevice;SystemInformation;Tablet;Tapi3;TaskSchd;Tbs;Tcui;TermServ;Threading;Time;ToolHelp;TraceLogging;TransactionServer;Tsf;Ual;UiAnimation;UpdateAssessment;Upnp;Variant;Vhd;VirtualDiskService;VSS;Wab;Wcm;Wcn;Wcs;Wds;WebDav;WebServicesOnDevices;WebSock;Wec;Wer;Wes;Wia;Wibe;Wic;Win32_Tile_Badge_Notif;WinAuto;WinContacts;WindowsConnectionManager;WindowsFilteringPlatform;WindowsFirewall;WindowsRibbon;WindowsSetupAndMigration;WinInet;WinLocation;WinRm;WinRT;WinRT.AllJoyn;WinRT.Composition;WinRT.CoreInputView;WinRT.Direct2D;WinRT.Direct3D11;WinRT.Display;WinRT.Graphics.Capture;WinRT.Graphics.Imaging;WinRT.Holographic;WinRT.Isolation;WinRT.Media;WinRT.ML;WinRT.Pdf;WinRT.Printing;WinRT.Storage;WinRT.Xaml;WinSat;WinSensors;WinSync;WinTouch;Wmdm;WmFormat;Wmi;Wmlss;Wmp;Wnet;wnv;WpdSdk;Wsb;Wsl;Wsw;Wua;Xaml_Diagnostics;Xaudio2;Xblidp;Xinput;XmlLite;Xps;XpsPrinting</ExcludeFromCrossarch>
<ExcludeFromCrossarch>ActiveDirectory;AllJoyn;Antimalware;ApplicationVerifier;Audio.Apo;Audio.DirectMusic;Audio.DirectSound;Audio.Endpoints;Authorization;Authorization.UI;Base;Bits;Bluetooth;Buses;CEIP;Certificates;Cloudapi;ClrHosting;ClrProfiling;CmpApi;Com;Com.CallObj;Com.ChannelCreds;Com.Events;Com.StructuredStorage;Com.Urlmon;Communication;ComOle;CompositionSwapchain;Console;Cos;Credentials;DataXchg;Debug.ActiveScript;Debug.Extensions;Debug.WebApp;Dedup;DeviceAccess;DeviceQuery;Devices.Properties;Devices.1394;Devices.Beep;Devices.Cdrom;Devices.Changer;Devices.Dvd;DevLic;Dhcp;Direct2D;Direct2D.Common;Direct3D;Direct3D10;Direct3D11;Direct3D11on12;Direct3D12;Direct3D9on12;Direct3DDxc;Direct3DFxc;DirectComp;DirectDraw;DirectManipulation;DirectML;DirectWrite;Dlna;DTC;Dwm;DXCore;Dxgi;Dxgi.Common;Eap;EapHost;Edp;Enstor;Environment;Etw;Fax;FileHistory;Foundation;Fs;Fsrm;FunctionDiscovery;GameMode;GamingDvcInfo;Gdi;Gdiplus;Gpmc;HostComputeNetwork;HostComputeSystem;HtmlHelp;HttpServer;Hypervisor;Identity;IdentityProvider;Ifsk;Iis;ImagingDevice;IMapi;IndexSrv;Input_Ink;Input_IntContext;Input.Ime;InputRadial;InternetConnectionWizard;InternetExplorer;Intl;IO;Isolation;JobObjects;Kernel;KeyboardAndMouseInput;Ldap;LibraryLoader;Lwef;MachineLearning;MadCap;MagApi;Mapi;Mbn;MdmReg;Media;Media.DShow;Media.DShow.Xml;Media.DxMediaObjects;Memory;MessageQueuing;Mi;MixedReality;MixedRealityInterop;Mmc;Monitor;MsChap;MsCs;MsHtml;MsTv;MsXml;Multimedia;Ndf;Ndis;NetMgmt;NetShell;NetworkAccessProtection;Nfc;Nfp;Nla;Nps;NWifi;Of;Opc;OpenGL;P2p;Parcon;PicAcq;Pipes;Pla;Policy;Power;PrintTicket;Proc_Snap;ProjFs;Properties;PsApi1;PsApi2;PWM;Qos;Rdc;Rdp;RealTimeCommunications;Registry;RemoteAssist;Rm;Rpc;RstMgr;SecBitomet;Security;Security.AppLocker;Security.ConfigurationSnapin;Security.Cryptography;Security.Cryptography.Catalog;Security.Cryptography.Sip;Security.Cryptography.UI;Security.DiagnosticDataQuery;Security.DirectoryServices;Security.LicenseProtection;Security.Tpm;Security.WinTrust;Security.WinWlx;SecurityCenter;Sens;SerPorts;Services;Setup;Shell.Common;Shutdown;SideShow;Smi;Speech;Sr;Storage.Nvme;SwDevice;SystemInformation;Tablet;Tapi3;TaskSchd;Tbs;Tcui;TermServ;Threading;Time;ToolHelp;TraceLogging;TransactionServer;Tsf;Ual;UiAnimation;UpdateAssessment;Upnp;Variant;Vhd;VirtualDiskService;VSS;Wab;Wcm;Wcn;Wcs;Wds;WebDav;WebServicesOnDevices;WebSock;Wec;Wer;Wes;Wia;Wibe;Wic;Win32_Tile_Badge_Notif;WinAuto;WinContacts;WindowsConnectionManager;WindowsFilteringPlatform;WindowsFirewall;WindowsRibbon;WindowsSetupAndMigration;WinInet;WinLocation;WinRm;WinRT;WinRT.AllJoyn;WinRT.Composition;WinRT.CoreInputView;WinRT.Direct2D;WinRT.Direct3D11;WinRT.Display;WinRT.Graphics.Capture;WinRT.Graphics.Imaging;WinRT.Holographic;WinRT.Isolation;WinRT.Media;WinRT.ML;WinRT.Pdf;WinRT.Printing;WinRT.Storage;WinRT.Xaml;WinSat;WinSensors;WinSync;WinTouch;Wmdm;WmFormat;Wmi;Wmlss;Wmp;Wnet;wnv;WpdSdk;Wsb;Wsl;Wsw;Wua;Xaml_Diagnostics;Xaudio2;Xblidp;Xinput;XmlLite;Xps;XpsPrinting</ExcludeFromCrossarch>

<!-- Set to false because the WinSDK assets are already in this project -->
<UseWinSDKAssets>false</UseWinSDKAssets>
Expand Down
11 changes: 11 additions & 0 deletions generation/WinSDK/manual/Devices.Cdrom.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Runtime.InteropServices;
using Windows.Win32.Foundation.Metadata;

namespace Windows.Win32.Devices.Cdrom
{
public static unsafe partial class Apis
{
public const int IOCTL_CDROM_BASE = 0x00000002;
}
}
11 changes: 11 additions & 0 deletions generation/WinSDK/manual/Devices.Dvd.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Runtime.InteropServices;
using Windows.Win32.Foundation.Metadata;

namespace Windows.Win32.Devices.Dvd
{
public static unsafe partial class Apis
{
public const int IOCTL_DVD_BASE = 0x00000033;
}
}
Loading

0 comments on commit 66962fb

Please sign in to comment.