Chisle
코딩 에이전트 플러그인, 20개 실시간 작업에서 기본 모델 52% 활용, 간결한 페르소나와 출력 압축 제공
Win32 API 메타데이터를 생성하는 도구
Tooling to generate metadata for Win32 APIs in the Windows SDK.
개발 도구GitHub @microsoft직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
저장소 정보는 아직 수집하지 않았습니다.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Win32 APIs provide functionality that not all languages and frameworks support themselves. When developing for Windows, developers often call into Win32 APIs to access this functionality.
Historically, this has required manually redefining the APIs to make them accessible, which is fragile and error-prone. Community projects like https://github.com/dotnet/pinvoke (.NET) and https://github.com/retep998/winapi-rs (Rust) have taken on the burden of providing strongly-typed and validated API signatures for their frameworks, but the projects are manually maintained, which is hard to sustain and makes it challenging to provide thorough API coverage.
This project aims to provide metadata for Win32 APIs such that idiomatic projections and projects like the ones above can be generated for all languages and frameworks in a more automated way and with more complete API coverage.
To call Win32 APIs from the language of your choice based off of this metadata, use the following language projections:
Note: Community projects are listed here to help with discovery but are not officially validated by Microsoft.
See the roadmap and FAQ for more details.
If you'd like to browse the metadata to see what we're emitting, extract Windows.Win32.winmd from the Microsoft.Windows.SDK.Win32Metadata NuGet package and load Windows.Win32.winmd in ILSpy. Download the package and rename it to .zip to browse and extract its content.
Below are some principles that guide the metadata that we produce:
uint that use constants into explicit enums to improve usability and discoverability. Keep enum member names consistent with the original constant names to preserve SEO.HANDLE and GDI objects as strongly-typed structs. The definition of these structs include how to dispose of the resources (like CloseHandle or DeleteObject). It is up to language projections to make use of this information in a language-specific way. For example, a C# projection could use SafeHandle objects for HANDLE and GDI objects.See ARCHITECTURE.md.
The emitter defaults to one output. --namespaceOutput Namespace=Additional.winmd
routes that namespace, its descendant namespaces, and all nested types to an
additional output. Matching is ordinal and uses whole namespace segments;
overlapping routes are rejected. The complete source set is prepared and compiled
once, then each output is emitted from that semantic model with assembly-scoped
references to types owned by the other outputs. File names are metadata assembly
identities, including .winmd; all outputs share the configured assembly version.
GeneratorSdk projects can configure the same routing with MSBuild items:
<NamespaceOutput Include="Windows.Win32.Graphics.Direct3D12">
<OutputWinmd>..\..\bin\Microsoft.Direct3D.D3D12.winmd</OutputWinmd>
</NamespaceOutput>
The WinSDK project enables that route while retaining its Windows
SDK headers and annotations. EmitDirect3D12Separately=false restores monolithic
WinSDK emission for comparison. The package includes both baseline files, and
projection inputs select the packaged D3D12 baseline by default. A compatible
replacement package sets Direct3D12ProjectionMetadataPath instead of adding a
second D3D input. Video/Media Foundation, Windows integration, common D3D, and DXGI
remain Windows-owned; canonical namespaces do not change.
Both metadata identities use assembly version 1.0.0.0
(WinmdAssemblyVersion), independently of the NuGet release version.
Replacement producers must use that identity and satisfy
the selected Windows baseline's minimum type/signature surface. Emission rejects
input references whose reciprocal dependencies require a different output
version, culture, or public key. Existing Agility
enum-name omissions and evolving sentinel values still require an explicit
compatibility decision. Consumers must resolve both metadata files; older
single-file or external-COM-unaware projection tooling needs updating.
The repository's integrity checks inspect both baseline files. Delegate checks
accept --ref metadata paths so COM ancestry and delegate dependencies resolve
across the output boundary. Namespace-cycle checks remain file-local and are not
cross-assembly validation.
WinmdUtils dump --includeReferencedWinmds compares the combined surface,
following .winmd assembly references beside the input and rejecting missing or
mismatched providers. The local baseline diff and CI API diff use this option;
CI publishes and signs both metadata files.
See PROJECTIONS.md.
See CONTRIBUTING.md.
Windows.Win32.winmd)This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.