[DllImport("kernel32.dll")]
static extern uint FormatMessage(uint dwFlags, IntPtr lpSource,
uint dwMessageId, uint dwLanguageId, [Out] StringBuilder lpBuffer,
uint nSize, IntPtr Arguments);
<DllImport("Kernel32.dll", EntryPoint:="FormatMessageW", SetLastError:=True, _
CharSet:=CharSet.Unicode, CallingConvention:=CallingConvention.StdCall)>
Public Shared Function FormatMessage(ByVal dwFlags As Integer, ByRef lpSource As IntPtr, _
ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByRef lpBuffer As [String], _
ByVal nSize As Integer, ByRef Arguments As IntPtr) As Integer
End Function
None.
None.
This functionality is also given by System.ComponentModel.Win32Exception:
Win32Exception myEx=new Win32Exception(-2147467259);
Console.WriteLine(myEx.Message);
Please add some!
Do you know one? Please contribute it!