Example #1
0
 private static extern int FormatMessage(
     FORMAT_MESSAGE dwFlags,
     IntPtr lpSource,
     int dwMessageId,
     int dwLanguageId,
     [MarshalAs(LPStr)] out string lpBuffer,
     int nSize,
     IntPtr Arguments
     );
Example #2
0
 public static extern uint FormatMessage(
     FORMAT_MESSAGE dwFlags, IntPtr lpSource, uint dwMessageId, uint dwLanguageId, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder lpBuffer, uint nSize,
     ref IntPtr Arguments);
Example #3
0
 internal static extern int FormatMessage(FORMAT_MESSAGE dwFlags, IntPtr lpSource, int dwMessageId, int dwLanguageId,
                                          StringBuilder lpBuffer, int nSize, IntPtr Arguments);
Example #4
0
 static extern int FormatMessage(FORMAT_MESSAGE dwFlags, IntPtr lpSource, int dwMessageId, uint dwLanguageId, out StringBuilder msgOut, int nSize, IntPtr Arguments);