microsoft/windows-drivers-rs

Add `WDF_STRUCTURE_SIZE` macro equivalent

开放

#242 创建于 2024年11月7日

 (3 条评论) (0 个反应) (0 位负责人)Rust (128 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (1,886 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南