Page tree
Skip to end of metadata
Go to start of metadata

Shows a warning message to the user. Optionally shows a "Do not ask again" checkbox if the message had previously been registered with UIRegisterWarningMessage

 

Syntax

Parameters

Example warning message

strModuleUUID
Type: LPCWSTR
The string UUID of the module showing the message. Can be NULL or empty if you are not associating this message with a message registered with UIRegisterWarningMessage
strMessageId
Type: LPCWSTR
The string message id. Can be NULL or empty if you are not associating this message with a message registered with UIRegisterWarningMessage
strQuestionText
Type: LPCWSTR

The text to display at the top of the dialog box next to the icon. In the above example this is the text Are you sure you want to delete 'MyCounter'?

strMessageText
Type: LPCWSTR

The text to display under the question text. In the above example this is Deleting a counter cannot be undone.

strTitle
Type: LPCWSTR
The dialog title. eg. Delete Performance Counter?
uType
Type: UINT

The dialog type that dictates the icon and buttons that are shown. Possible values are:

MB_OK, MB_OKCANCEL, MB_YESNO, MB_YESNOCANCEL, MB_RETRYCANCEL, MB_ABORTRETRYIGNORE

hParent
Type: HWND

The parent window of the warning message dialog. Can be NULL in which case the parent is the entire desktop.


Return Value

Type: BOOL
If the user selects OK, YES or RETRY then the return value is TRUE. Otherwise it is FALSE.

Remarks

The "Do not ask again" option appears automatically if you have previously registered the warning message with UIRegisterWarningMessage or UIRegisterWarningMessageId

 

Examples

None

See Also

UIShowWarningMessageId