The managed and native APIs model the same dialog concepts with different shapes.
| Type | Purpose |
|---|---|
| MessageBoxOptions | The full dialog request |
| MessageBoxButton | Button identifier, label, style hint, and default/cancel flags |
| MessageBoxInputOptions | Optional checkbox, text, password, or combo input |
| MessageBoxSecondaryContent | Informative text, expanded text, footer, and help link |
| MessageBoxResult | Outcome, selected button, returned input, checkbox state, timeout flag |
| NativeMessageBoxException | Error wrapper for failure paths |
| C ABI type | Managed equivalent |
|---|---|
NmbMessageBoxOptions |
MessageBoxOptions |
NmbButtonOption |
MessageBoxButton |
NmbInputOption |
MessageBoxInputOptions |
NmbSecondaryContentOption |
MessageBoxSecondaryContent |
NmbMessageBoxResult |
MessageBoxResult |
OK button when none are supplied.When a dialog completes, inspect:
Outcome for success, cancellation, unsupported feature, or failureButtonId for the selected buttonInputValue when text/password/combo input was presentCheckboxChecked for verification/suppress stateWasTimeout to distinguish automatic dismissal from user choiceMessageBoxOptions.PlatformCapabilities provides a small set of precomputed hints such as:
These hints are not the full platform matrix, but they are useful for deciding whether a call should be scheduled differently.