Logo
Agent Skills Guide
All SkillsCategoryTagsPublishers
Logo
Agent Skills Guide
Logo
Agent Skills Guide

Discover and download skills for Claude Code and other AI agents

Skills
  • All Skills
  • Category
  • Tags
  • Publishers
Legal
  • Privacy Policy
  • Terms of Service
Copyright © 2026 Agent Skills Guide. Open Source.
  1. Home
  2. Skills
  3. dotnet-pinvoke

dotnet-pinvoke

dotnet/skills
@dotnet/skills
404
•published 2026/03/13

Correctly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P/Invoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed/native boundary. DO NOT USE FOR: COM interop, C++/CLI mixed-mode assemblies, or pure managed code with no native dependencies.

📦 Install Skill

Command line install

Install directly with the `skills` CLI.

npx skills add dotnet/skills/plugins/dotnet/skills/dotnet-pinvoke

Local download

Download only this skill directory.

Download dotnet-pinvoke only
File Explorer
0 files
No file selected
readonly

Select a file to view its content

Resources

  • Repository

Tags

APIDebuggingBest Practices