skills/dotnet/msbuild/cswin32-com/Gen Agent Trust Hub

cswin32-com

Pass

Audited by Gen Agent Trust Hub on Jun 17, 2026

Risk Level: SAFE
Full Analysis
  • Standard Interop Patterns: The skill describes the use of P/Invoke and COM (Component Object Model) vtable manipulation. While these are low-level operations, they are documented here as standard development practices for the .NET ecosystem to ensure performance and AOT (Ahead-of-Time) compatibility.
  • Memory and Lifetime Management: A significant portion of the guide is dedicated to safe resource handling through the use of ComScope<T> and AgileComPointer<T>, which are designed to prevent memory leaks and apartment-agility issues common in manual COM programming.
  • Technical Guidance on Marshalling: The instructions provide specific guidance on using delegate* unmanaged and specific calling conventions (like Stdcall). This is educational material intended to help developers avoid stack corruption by matching native ABI requirements.
  • Integration with Development Tools: The skill references integration with CsWin32, a well-known source generator from Microsoft, and provides project organization patterns for managing generated and manual native code files.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 17, 2026, 01:42 PM
Security Audit — agent-trust-hub — cswin32-com