From cd24aece7a6141fedfad7abae8f056955f24f668 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Sun, 30 Oct 2022 19:41:16 +0530 Subject: [PATCH] api list --- api/all.json | 298 +++++++++++++++++++++++++++++++++++++++++++++++ generator/gen.ts | 8 ++ 2 files changed, 306 insertions(+) create mode 100644 api/all.json diff --git a/api/all.json b/api/all.json new file mode 100644 index 0000000..668b8bd --- /dev/null +++ b/api/all.json @@ -0,0 +1,298 @@ +[ + "Media.Audio", + "UI.Controls", + "Security.Cryptography.Certificates", + "Storage.IscsiDisc", + "Graphics.Direct3D11", + "Graphics.Direct3D12", + "Graphics.Direct3D9", + "Graphics.Hlsl", + "Graphics.DirectWrite", + "System.Diagnostics.Etw", + "Storage.FileSystem", + "Foundation", + "Graphics.Gdi", + "UI.HiDpi", + "Web.MsHtml", + "System.Ioctl", + "System.Js", + "System.Wmi", + "Media.Multimedia", + "NetworkManagement.WiFi", + "System.Ole", + "System.Registry", + "System.RestartManager", + "Storage.DistributedFileSystem", + "Security.Credentials", + "Security.Cryptography", + "System.Services", + "System.ApplicationInstallationAndServicing", + "UI.Shell", + "System.SystemInformation", + "System.SystemServices", + "UI.TabletPC", + "UI.TextServices", + "System.Threading", + "AI.MachineLearning.DirectML", + "AI.MachineLearning.WinML", + "Data.HtmlHelp", + "Data.RightsManagement", + "Data.Xml.MsXml", + "Devices.AllJoyn", + "Devices.BiometricFramework", + "Devices.Bluetooth", + "Devices.Communication", + "Devices.DeviceAccess", + "Devices.DeviceAndDriverInstallation", + "Devices.Display", + "Devices.Enumeration.Pnp", + "Devices.Fax", + "Devices.FunctionDiscovery", + "Devices.Geolocation", + "Devices.HumanInterfaceDevice", + "Devices.ImageAcquisition", + "Devices.PortableDevices", + "Devices.Properties", + "Devices.Pwm", + "Devices.Sensors", + "Devices.SerialCommunication", + "Devices.Tapi", + "Devices.Usb", + "Devices.WebServicesOnDevices", + "Gaming", + "Globalization", + "Graphics.Direct2D", + "Graphics.Direct3D", + "Graphics.Direct3D.Dxc", + "Graphics.Direct3D.Fxc", + "Graphics.Direct3D10", + "Graphics.Direct3D9on12", + "Graphics.DirectComposition", + "Graphics.DirectDraw", + "Graphics.DirectManipulation", + "Graphics.Dwm", + "Graphics.DXCore", + "Graphics.Dxgi.Common", + "Graphics.Dxgi", + "Graphics.Imaging", + "Graphics.OpenGL", + "Graphics.Printing", + "Graphics.Printing.PrintTicket", + "Management.MobileDeviceManagementRegistration", + "Media.Audio.Apo", + "Media.Audio.DirectMusic", + "Media.Audio.DirectSound", + "Media.Audio.Endpoints", + "Media.Audio.XAudio2", + "Media", + "Media.DeviceManager", + "Media.DirectShow", + "Media.DirectShow.Xml", + "Media.DxMediaObjects", + "Media.KernelStreaming", + "Media.MediaFoundation", + "Media.MediaPlayer", + "Media.PictureAcquisition", + "Media.Speech", + "Media.WindowsMediaFormat", + "Networking.ActiveDirectory", + "Networking.BackgroundIntelligentTransferService", + "Networking.Clustering", + "Networking.HttpServer", + "Networking.Ldap", + "Networking.NetworkListManager", + "Networking.RemoteDifferentialCompression", + "Networking.WebSocket", + "Networking.WindowsWebServices", + "Networking.WinHttp", + "Networking.WinInet", + "Networking.WinSock", + "NetworkManagement.Dhcp", + "NetworkManagement.Dns", + "NetworkManagement.InternetConnectionWizard", + "NetworkManagement.IpHelper", + "NetworkManagement.Multicast", + "NetworkManagement.Ndis", + "NetworkManagement.NetBios", + "NetworkManagement.NetManagement", + "NetworkManagement.NetShell", + "NetworkManagement.NetworkDiagnosticsFramework", + "NetworkManagement.NetworkPolicyServer", + "NetworkManagement.P2P", + "NetworkManagement.QoS", + "NetworkManagement.Rras", + "NetworkManagement.Snmp", + "NetworkManagement.WebDav", + "NetworkManagement.WindowsConnectionManager", + "NetworkManagement.WindowsConnectNow", + "NetworkManagement.WindowsFilteringPlatform", + "NetworkManagement.WindowsFirewall", + "NetworkManagement.WindowsNetworkVirtualization", + "NetworkManagement.WNet", + "Security.AppLocker", + "Security.Authentication.Identity", + "Security.Authentication.Identity.Provider", + "Security.Authorization", + "Security.Authorization.UI", + "Security.ConfigurationSnapin", + "Security", + "Security.Cryptography.Catalog", + "Security.Cryptography.Sip", + "Security.Cryptography.UI", + "Security.DirectoryServices", + "Security.ExtensibleAuthenticationProtocol", + "Security.NetworkAccessProtection", + "Security.Tpm", + "Security.WinTrust", + "Security.WinWlx", + "Storage.Cabinets", + "Storage.CloudFilters", + "Storage.Compression", + "Storage.DataDeduplication", + "Storage.EnhancedStorage", + "Storage.FileHistory", + "Storage.FileServerResourceManager", + "Storage.Imapi", + "Storage.IndexServer", + "Storage.InstallableFileSystems", + "Storage.Jet", + "Storage.OfflineFiles", + "Storage.Packaging.Appx", + "Storage.Packaging.Opc", + "Storage.Vhd", + "Storage.VirtualDiskService", + "Storage.Vss", + "Storage.Xps", + "Storage.Xps.Printing", + "System.AddressBook", + "System.ApplicationVerifier", + "System.Com", + "System.Com.StructuredStorage", + "System.Com.Urlmon", + "System.ComponentServices", + "System.Console", + "System.Contacts", + "System.CorrelationVector", + "System.DataExchange", + "System.DeploymentServices", + "System.DesktopSharing", + "System.Diagnostics.Debug", + "System.Diagnostics.ProcessSnapshotting", + "System.Diagnostics.ToolHelp", + "System.DistributedTransactionCoordinator", + "System.Environment", + "System.ErrorReporting", + "System.EventCollector", + "System.EventLog", + "System.EventNotificationService", + "System.GroupPolicy", + "System.Hypervisor", + "System.Iis", + "System.Kernel", + "System.LibraryLoader", + "System.Mapi", + "System.Memory", + "System.MessageQueuing", + "System.MixedReality", + "System.Mmc", + "System.ParentalControls", + "System.Performance", + "System.Pipes", + "System.Power", + "System.ProcessStatus", + "System.RealTimeCommunications", + "System.RemoteAssistance", + "System.RemoteDesktop", + "System.RemoteManagement", + "System.Restore", + "System.Rpc", + "System.Search", + "System.ServerBackup", + "System.SettingsManagementInfrastructure", + "System.Shutdown", + "System.SideShow", + "System.TaskScheduler", + "System.Time", + "System.TpmBaseServices", + "System.UpdateAgent", + "System.VirtualDosMachines", + "System.WindowsProgramming", + "System.WindowsSync", + "System.WinRT", + "System.WinRT.Xaml", + "UI.Accessibility", + "UI.Animation", + "UI.ColorSystem", + "UI.Controls.Dialogs", + "UI.Controls.RichEdit", + "UI.Input.Ime", + "UI.Input.KeyboardAndMouse", + "UI.Input.XboxController", + "UI.LegacyWindowsEnvironmentFeatures", + "UI.Magnification", + "UI.Ribbon", + "UI.Shell.Common", + "UI.Shell.PropertiesSystem", + "UI.WindowsAndMessaging", + "UI.Wpf", + "UI.Xaml.Diagnostics", + "System.Antimalware", + "System.Com.Marshal", + "System.Diagnostics.Ceip", + "System.Com.CallObj", + "System.Com.ChannelCredentials", + "System.Com.Events", + "Graphics.CompositionSwapchain", + "System.Diagnostics.Debug.WebApp", + "Devices.DeviceQuery", + "System.DeveloperLicensing", + "Graphics.Direct3D11on12", + "Security.EnterpriseData", + "System.HostComputeNetwork", + "System.HostComputeSystem", + "UI.Input.Radial", + "UI.Input.Ink", + "UI.InteractionContext", + "System.IO", + "Security.Isolation", + "System.JobObjects", + "NetworkManagement.MobileBroadband", + "System.PasswordManagement", + "Storage.ProjectedFileSystem", + "Security.DiagnosticDataQuery", + "Security.LicenseProtection", + "System.SecurityCenter", + "System.TransactionServer", + "System.UserAccessLogging", + "System.UpdateAssessment", + "UI.Notifications", + "System.SetupAndMigration", + "System.WinRT.AllJoyn", + "System.WinRT.Composition", + "System.WinRT.CoreInputView", + "System.WinRT.Graphics.Direct2D", + "System.WinRT.Direct3D11", + "System.WinRT.Display", + "System.WinRT.Graphics.Capture", + "System.WinRT.Graphics.Imaging", + "System.WinRT.Holographic", + "System.WinRT.Isolation", + "System.WinRT.Media", + "System.WinRT.ML", + "System.WinRT.Pdf", + "System.WinRT.Printing", + "System.WinRT.Storage", + "System.AssessmentTool", + "UI.Input.Touch", + "Media.LibrarySharingServices", + "System.SubsystemForLinux", + "Data.Xml.XmlLite", + "System.Memory.NonVolatile", + "System.StationsAndDesktops", + "UI.Input.Pointer", + "UI.Input", + "Storage.OperationRecorder", + "System.Mailslots", + "System.Recovery", + "System.Performance.HardwareCounterProfiling" +] \ No newline at end of file diff --git a/generator/gen.ts b/generator/gen.ts index 8226687..c1036e5 100644 --- a/generator/gen.ts +++ b/generator/gen.ts @@ -207,6 +207,8 @@ function sizeof(ty: Deno.NativeResultType) { } } +const files: string[] = []; + for (const api in win32) { if (!api.startsWith("Windows.Win32.")) { throw new Error(`Invalid API name: ${api}`); @@ -533,6 +535,7 @@ for (const api in win32) { content += `}\n\n`; } + files.push(path.replaceAll("/", ".").replace(".ts", "").trim()); await Deno.mkdir(TARGET_DIR + "/" + parts.join("/"), { recursive: true }) .catch(() => {}); await Deno.writeTextFile(TARGET_DIR + "/" + path, content); @@ -563,3 +566,8 @@ function handleEntries( const entries = [...Deno.readDirSync(TARGET_DIR)]; handleEntries(TARGET_DIR, entries); + +await Deno.writeTextFile( + TARGET_DIR + "/all.json", + JSON.stringify(files, null, 2), +);