mb_getstring (user32)
Last changed: -81.217.39.232

.
Summary
Returns strings for standard message box buttons.

C# Signature:

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern IntPtr MB_GetString(int strId);

VB Signature:

    <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)>
    Private Shared Function MB_GetString(ByVal strId As Integer) As IntPtr
    End Function

User-Defined Types:

DialogBoxCommandID

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Use Marshal.PtrToStringAuto to retrieve the returned message.

Tips & Tricks:

Please add some!

Sample Code:

strMBText = Marshal.PtrToStringAuto(MB_GetString(id)) 'ID As DialogBoxCommandID

Documentation