Re: Can't add notification icon on WM 6.5

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"pinguin" <oneneno@xxxxxxx> wrote in message news:072152AB-A25C-4A5D-8FD3-EFC40CC54773@xxxxxxxxxxxxxxxx
This function works on WM 6.1 but not on WM 6.5
.It doeasn't show icon on 6.5.
I have i doing wrong ? Or WM 6.5 has new API ?

void AddNotificationIcon(HICON hIcon, PTSTR pszTip)
{
SHNOTIFICATIONDATA* pNotification = NULL;
pNotification = (SHNOTIFICATIONDATA*)malloc(sizeof(SHNOTIFICATIONDATA));

pNotification->cbStruct = sizeof(SHNOTIFICATIONDATA);
pNotification->dwID = ICON_ID;
pNotification->npPriority = SHNP_INFORM;
pNotification->csDuration = -1;
pNotification->hicon = hIcon;
pNotification->clsid = guidPPCAlertsApp;
pNotification->grfFlags = NOTIF_SOFTKEY_FLAGS_HIDE;
pNotification->pszTitle = TEXT("Test");
pNotification->pszHTML = pszTip; // _T("<html><b>App service is
ready</b></html>");
pNotification->hwndSink = m_hWnd;

pNotification->rgskn[0].pszTitle = TEXT("Hide");
pNotification->rgskn[0].skc.wpCmd = 1004;
pNotification->rgskn[0].skc.grfFlags = SHNF_STRAIGHTTOTRAY;




SHNotificationAdd(pNotification);
}

What does SHNotificationAdd return on the 6.5 device?

.


Quantcast