microsoft/windows-drivers-rs

Add `WDF_STRUCTURE_SIZE` macro equivalent

オープン

#242 opened on 2024/11/07

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (128 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (1,886 個のスター)
PR merge metrics
 (PR metrics pending)

説明

WDF_STRUCTURE_SIZE is a macro available in the WDK, but isn't available in wdk-sys since bindgen can't generate macros. WDF_STRUCTURE_SIZE is useful since many of the _INIT macros are also not available right now. A 1:1 implementation of WDF_STRUCTURE_SIZE should be made available in wdk-sys, although an equivalent shouldn't be needed in wdk given that the safe abstractions shouldn't need to do any of the c-style manual initializations.

コントリビューターガイド