Επεξεργασία

Κοινή χρήση μέσω


IUserNotification2 interface (shobjidl.h)

Exposes methods that set notification information and then display that notification to the user in a balloon that appears in conjunction with the notification area of the taskbar.

Note  IUserNotification2 does not inherit from IUserNotification. IUserNotification2 differs from IUserNotification only in its Show method, which adds an additional parameter for a callback interface to communicate with the notification. Otherwise the two interfaces are identical in form and function. CLSID_UserNotification implements both versions of Show as an overload.
 

Inheritance

The IUserNotification2 interface inherits from the IUnknown interface. IUserNotification2 also has these types of members:

Methods

The IUserNotification2 interface has these methods.

 
IUserNotification2::PlaySound

Plays a sound in conjunction with the notification. (IUserNotification2.PlaySound)
IUserNotification2::SetBalloonInfo

Sets the information to be displayed in a balloon notification. (IUserNotification2.SetBalloonInfo)
IUserNotification2::SetBalloonRetry

Specifies the conditions for trying to display user information when the first attempt fails. (IUserNotification2.SetBalloonRetry)
IUserNotification2::SetIconInfo

Sets the notification area icon associated with specific user information. (IUserNotification2.SetIconInfo)
IUserNotification2::Show

Displays the user information in a balloon-style tooltip.

Remarks

When to Implement

An implementation of this interface is provided in Windows as CLSID_UserNotification.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl.h

See also

IUserNotification