Граф коммитов

74 Коммитов

Автор SHA1 Сообщение Дата
Daniel Paoliello 19ceee6047
When finding a type def from a type ref, search all assemblies (#1919) 2024-06-04 11:34:15 -07:00
Mike Battista 496dd01a28 Rename KNONVOLATILE_CONTEXT_POINTERS_ARM64 to KNONVOLATILE_CONTEXT_POINTERS. Fixed #480. 2024-05-07 16:51:29 -07:00
Daniel Paoliello 07ac08e824
Fix ConstantsScraper tests (#1898) 2024-05-07 12:40:28 -07:00
Rafael Rivera c5d5bc58dc
Fix MetadataUtils.Tests failures (#1855) 2024-02-27 12:21:33 -08:00
Mike Battista 631b1333f5 Added ConsoleControl for #1782. 2024-01-18 07:42:53 -08:00
Mike Battista 78608fdf09 Update tools to .NET 8. Fixed #1746. 2024-01-03 10:47:30 -08:00
Mike Battista 090137db5b Revert "Update tools to .NET 8. Fixed #1746."
This reverts commit 0eda145166.
2023-12-04 08:46:07 -08:00
Mike Battista 0eda145166 Update tools to .NET 8. Fixed #1746. 2023-11-30 10:17:24 -08:00
Rafael Rivera b9994fad7a
Initial support for GDI+ (#1709)
* Add GDI+

* Add abort functions to empty delegate allow list
2023-09-14 11:49:42 -07:00
Mike Battista 22d6ad9b2a
Updated to ClangSharp 16.0 and added support for bitfields (#1620)
* Updated to ClangSharp 16.0.

* Feature request: use get/set to deal with bitfields. Fixed #1392.

* Updated the baseline.

* Documented NativeBitfield.

* Fixed formatting bug.

* Lowercased Name.
2023-07-16 15:27:28 -07:00
Mike Battista 9e7d0707d5 Metadata is missing for CLR hosting API. Fixed #1582. 2023-05-23 17:11:40 -07:00
Mike Battista 0dfc6d4e29 Resolved MDL type conflict with the WDK.
See https://github.com/microsoft/wdkmetadata/issues/35.
2023-05-13 17:00:42 -07:00
Mike Battista 2926c91571 Updated test and baseline. 2023-05-01 19:48:02 -07:00
Mike Battista 654baaf88c Refactored opaque struct handling. 2023-04-27 15:23:44 -07:00
Mike Battista 5b32b21e81 Added missing Threading opaque structs for #1547. 2023-04-20 11:24:31 -07:00
Mike Battista 45869a0cad
Retired Windows.Win32.Interop.dll and moved attribute definitions to Windows.Win32.Foundation.Metadata (#1527)
* Initial attempt at merging Interop types into the main winmd.

The winmd is generated but the attributes don't appear to be retaining the Attribute inheritance which is causing build failures in the WinmdGenerator and samples.

* Updated new files and attributes.

* Updated interop reference.

* Attributes moved to Windows.Win32.Foundation.Metadata and everything builds and compiles but attributes that expose properties like MemorySize and NativeArrayInfo have questionable definitions since the properties aren't exposed in the metadata.

* Updated debug configuration.

* Added support for properties and attributes.

* Updated the baseline.

* Added public constructors.

* Updated the diffing tool to account for the attribute namespace change and updated the baseline.
2023-04-06 15:20:14 -07:00
Mike Battista c711cb5b4b Fixed #903. 2023-03-24 16:43:24 -07:00
Mike Battista 8387ddf166 Fixed #903. 2023-03-23 14:43:45 -07:00
Rafael Rivera b8b270e3d2
Correct ushort PSTR/PWSTR constant values (#1509) 2023-03-23 10:15:23 -07:00
Rafael Rivera 30a14ca65b
Add short const support, make constant scraping impl. testable (#1503)
* Make constant handling testable, add short support

* Add .field init type check

* Update changes

---------

Co-authored-by: Mike Battista <13860912+mikebattista@users.noreply.github.com>
2023-03-21 18:00:15 -07:00
Mike Battista 3380fbb287 Fixed #1495. 2023-03-17 00:10:07 -07:00
Rafael Rivera 57e769fcb5 Add GC host header, types 2023-03-16 22:37:05 -07:00
Mike Battista 0eb1185323 Fixed #408. Fixed #240. 2023-03-15 00:24:44 -07:00
Mike Battista 076d1ffad9 Ignore case when testing for duplicates. 2023-03-13 14:20:50 -07:00
Mike Battista 0c1229e059 Fixed #1485. 2023-03-09 10:50:34 -08:00
Mike Battista e0c38ed95f Fixed #1242. 2023-03-03 08:59:46 -08:00
Mike Battista 5b659c47d7 Fixed #1372. 2023-02-28 17:15:29 -08:00
Rafael Rivera 589461fe43
Fix impl. method counting for interfaces (#1427) 2023-01-13 10:30:52 -08:00
Andrew Arnott 0e77676365
Sign the Microsoft.Windows.Sdk.Win32Docs.dll assembly (#1380)
* Sign the Microsoft.Windows.Sdk.Win32Docs.dll assembly

We need to build it, sign it, then pack it.

* Update Nerdbank.GitVersioning
2022-11-22 19:41:29 -08:00
Rose b93bcec446
Update NuGet packages (#1302)
Co-authored-by: Mike Battista <13860912+mikebattista@users.noreply.github.com>
2022-10-18 15:33:47 -07:00
Rafael Rivera 03a7153bf4
Transform multicharacter literals to integers (#1191) 2022-08-29 17:33:23 -07:00
Steve Otteson c9e348a3c4
Use a common property for the last release version. (#1186)
Add a script to edit that property and clear the known changes.
2022-08-29 14:27:18 -07:00
Steve Otteson 5975864f00
Update to v30 (#1184) 2022-08-29 00:28:53 -07:00
Steve Otteson 79e53af71a
Update last release ver to 28.0.1-preview (#1110) 2022-08-22 14:11:51 -07:00
Steve Otteson a8f880de53
Clear out changes after doing a release (#1057) 2022-08-18 00:37:51 -07:00
Steve Otteson 0086803694
Remove need for baseline winmd (#1056) 2022-08-17 23:15:08 -07:00
dependabot[bot] 536ebc927c
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /tests/VtablesFromPdb (#978)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-26 12:37:06 -07:00
dependabot[bot] 52bc451c1e
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /tests/Windows.Win32.Tests (#979)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-26 12:36:46 -07:00
Andrew Arnott b286d8956c
Update repo SDK and build authoring (#942)
* Bump 5.0 SDK and runtimes to 6.0

* Make it very clear that Powershell 7 is required

The new `#Requires` line makes the DoAll script fail fast with a helpful error:

> .\DoAll.ps1 : The script 'DoAll.ps1' cannot be run because it contained a "#requires" statement for Windows PowerShell 7.0. The version of Windows PowerShell that is required by the script does not match the currently running version of Windows PowerShell 5.1.22000.653.

Before this, the user may get some weird error about `Select-String -Raw` not working.

* Fix BuildSdk.proj default build

It doesn't like to be *built*. It only likes to be packed.

* Improve discovery of VS installations

* Install the .NET 5 runtime for ClangSharpPInvokeGenerator
2022-06-01 15:16:12 -07:00
Steve Otteson dde309ef4b
Avoid cyclical dependencies by fixing the ones we have (#914)
Fix winmdutils to properly display cycles
Add a test to break if there are any cycles in the winmd
2022-05-04 23:21:11 -07:00
Steve Otteson 8340907e26 Fixes #846 - Fix some delegates that weren't emitted correctly
Also found that many delegate parameters were in/out when they should only be in
2022-03-30 16:02:26 -07:00
Rafael Rivera 15eda95fde
Add InvalidHandleValueAttribute support (#853)
* Add InvalidHandleValueAttribute, tests

* Add InvalidHandleValue attribute to FindVolumeHandle

* Address feedback

* Support multiple InvalidHandleValues

* Fix build
2022-03-28 15:08:07 -07:00
Steve Otteson 5dc53dc261 Fixes #725 - SupportedArchitecture dependency issue
Added a test to catch this kind of issue in the future
2021-11-09 13:38:27 -08:00
Steve Otteson beb18b9d04
Move to sdk version 22000 plus a ton of changes in header coverage (#697) 2021-10-13 21:32:51 -07:00
Steve Otteson 6ee178a2de
Lib scrape fixes (#696)
* Changing lib scraper to not use dumpbin.exe, adding more tests

* More changes
2021-10-05 18:20:58 -07:00
Steve Otteson 2bca58c779
Fixes #600 - Fix vtable ordering bug (#681)
* Fix bug where interfaces with overloaded functions had the wrong vtable order
Add test for vtable
Convert other tests to xunit

* Merge with main and make sue we clean the samples before we build them

* Add additional interfaces to test and test apps that helped produce the data

* Updated .winmd

* Update versions
2021-09-27 14:53:36 -07:00
Bill Avery 5b717494a5
Add a WebView2Sample with a StaticLibrary attribute mapping the DllImport name to an optional static library substitute (#553)
* Define the StaticLibrary method attribute

* Add a --staticLibs flag and test it with the TestSource config

* Integrate --staticLibs with EmitWinmd in msbuild

* Add WebView2SampleDebug

* Fix the winmd name
2021-07-22 10:10:11 -07:00
Mike Battista c454ba4a5d Fixed #462. 2021-05-06 22:08:14 -07:00
Steve Otteson b0dd13fa90 Fixes #447 - Move SystemServices namespace to System.SystemServices 2021-04-27 18:07:59 -07:00
Steve Otteson df833c5f4d
Updating a lot of namespaces (#444)
* Attempted to move winreg.h to System.Registry. Builds but only a few APIs moved.

* Added CONTRIBUTING.md with details on namespaces.

* Added overview bullets to CONTRIBUTING.md.

* Added projections to CONTRIBUTING.md.

* Fixed relative links.

* Removed hardcoded registry remappings.

* Refactored manual Registry definitions.

* Refactored networking APIs.

* Changed RRAS to Rras.

* Updated the Namespaces section.

* Added a script to identify missing header files.

* Fixed whitespace.

* Added a ToC to the Namespaces section.

* Cleaned up old Registry mappings.

* Removed hardcoded WinSock mappings.

Validated the headers for all hardcoded mappings are already in the WinSock partition. Added transportsettingcommon.h which was missing.

* Reordered parameters.

* Removed redundant DNS mappings.

* Removed redundant WFP mappings.

* Removed redundant Windows Firewall mappings.

* Renamed the WindowsFirewall partition.

* Renamed the WindowsFilteringPlatform partition.

* Removed redundant BITS mappings.

* Removed redundant DHCP mappings.

* Removed redundant IpHelper mappings.

* Removed redundant MIB mappings.

* Removed redundant IpHelper mappings.

* Added missing headers to WindowsFilteringPlatform.

* Removed duplicate entries from header.txt.

* Fixed build break. Casing matters for --traverse.

* Reverted casing changes.

* Moved AD, LDAP, and RDC to Networking.

* Renamed AllJoyn-DeviceAndDriverInstallation.

* Renamed Direct*.

* Renamed DisplayDevices-InteractionContext.

* Renamed Intl-OtherDeviceTechnologies.

* Renamed Packaging-Xps.

* Renamed COM, COM+, IE, and OfflineFiles.

* Renamed WindowsProgramming.

* Renamed WinML. Removed redundant ML mappings.

* Add missing AllJoyn headers.

* Attempted to move winreg.h to System.Registry. Builds but only a few APIs moved.

* Added CONTRIBUTING.md with details on namespaces.

* Added overview bullets to CONTRIBUTING.md.

* Added projections to CONTRIBUTING.md.

* Fixed relative links.

* Removed hardcoded registry remappings.

* Refactored manual Registry definitions.

* Refactored networking APIs.

* Changed RRAS to Rras.

* Updated the Namespaces section.

* Added a script to identify missing header files.

* Fixed whitespace.

* Added a ToC to the Namespaces section.

* Cleaned up old Registry mappings.

* Removed hardcoded WinSock mappings.

Validated the headers for all hardcoded mappings are already in the WinSock partition. Added transportsettingcommon.h which was missing.

* Reordered parameters.

* Removed redundant DNS mappings.

* Removed redundant WFP mappings.

* Removed redundant Windows Firewall mappings.

* Renamed the WindowsFirewall partition.

* Renamed the WindowsFilteringPlatform partition.

* Removed redundant BITS mappings.

* Removed redundant DHCP mappings.

* Removed redundant IpHelper mappings.

* Removed redundant MIB mappings.

* Removed redundant IpHelper mappings.

* Added missing headers to WindowsFilteringPlatform.

* Removed duplicate entries from header.txt.

* Fixed build break. Casing matters for --traverse.

* Reverted casing changes.

* Moved AD, LDAP, and RDC to Networking.

* Renamed AllJoyn-DeviceAndDriverInstallation.

* Renamed Direct*.

* Renamed DisplayDevices-InteractionContext.

* Renamed Intl-OtherDeviceTechnologies.

* Renamed Packaging-Xps.

* Renamed COM, COM+, IE, and OfflineFiles.

* Renamed WindowsProgramming.

* Renamed WinML. Removed redundant ML mappings.

* Add missing AllJoyn headers.

* Added missing AllJoyn interop header.

* Update branch with master

* Removing stray debug code

Co-authored-by: Mike Battista <mbattist@microsoft.com>
Co-authored-by: Steve Otteson <sotteson@microsoft.com>
2021-04-27 01:15:58 -07:00