Пример #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
     );
Пример #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);
Пример #3
0
 internal static extern int FormatMessage(FORMAT_MESSAGE dwFlags, IntPtr lpSource, int dwMessageId, int dwLanguageId,
                                          StringBuilder lpBuffer, int nSize, IntPtr Arguments);
Пример #4
0
 static extern int FormatMessage(FORMAT_MESSAGE dwFlags, IntPtr lpSource, int dwMessageId, uint dwLanguageId, out StringBuilder msgOut, int nSize, IntPtr Arguments);