Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
773 B

  1. #ifndef _BALLOON_MSG_H
  2. #define _BALLOON_MSG_H
  3. typedef struct {
  4. DWORD dwSize; // sizeof(BALLOON_MESSAGE) for versioning
  5. LPCTSTR pszTitle; // title of the balloon, also used in the tooltip
  6. LPCTSTR pszText; // body text of the balloon
  7. HICON hIcon; // optional icon for tray
  8. DWORD dwInfoFlags; // the icon in the balloon (NIIF_INFO, NIIF_WARNING, NIIF_ERROR)
  9. UINT cRetryCount; // retry 0 for only one, -1 for infinite
  10. } BALLOON_MESSAGE;
  11. // returns:
  12. // S_OK user confirmed the message (clicked on the balloon or icon)
  13. // S_FALSE user ignored the message and it timed out
  14. // FAILED() other failures
  15. STDAPI SHBalloonMessage(const BALLOON_MESSAGE *pbm);
  16. #endif // _BALLOON_MSG_H