dotnet / dotnet/dotnet-api-docs

Provide a managed wrapper for turning error codes to text

Open
#1,189 0 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime.InteropServices dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Please provide a managed wrapper for turning the win32 error codes to text. Eg you could simply convert the error codes in winnt.h (or whatever it is called) in a managed enum which would parse these error codes into their BLAH_ERROR_BLAH c++ equivalent enum.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 8a107dce-a836-7d7b-8700-dae50b7c0cc7
* Version Independent ID: a9ce00eb-08d8-77b7-a4cc-2f66616f5c60
* Content: [Marshal.GetLastWin32Error Method (System.Runtime.InteropServices)](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.getlastwin32error?view=netframework-4.7.2)
* Content Source: [xml/System.Runtime.InteropServices/Marshal.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Runtime.InteropServices/Marshal.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.