Share via


SecurityWin32Util.FormatMessage Method

Provides a pointer to the message for Win32 errors based on the message source and message ID.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Shared Function FormatMessage ( _
    Flags As Integer, _
    ByRef MessageSource As IntPtr, _
    MessageID As Integer, _
    LanguageID As Integer, _
    ByRef Buffer As IntPtr, _
    BufferSize As Integer, _
    Arguments As Integer _
) As Integer
'Usage
Dim Flags As Integer
Dim MessageSource As IntPtr
Dim MessageID As Integer
Dim LanguageID As Integer
Dim Buffer As IntPtr
Dim BufferSize As Integer
Dim Arguments As Integer
Dim returnValue As Integer

returnValue = SecurityWin32Util.FormatMessage(Flags, _
    MessageSource, MessageID, LanguageID, _
    Buffer, BufferSize, Arguments)
public static int FormatMessage(
    int Flags,
    ref IntPtr MessageSource,
    int MessageID,
    int LanguageID,
    ref IntPtr Buffer,
    int BufferSize,
    int Arguments
)

Parameters

Return Value

Type: System.Int32

See Also

Reference

SecurityWin32Util Class

SecurityWin32Util Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace