|
Posted by Saman on January 6, 2008, 3:51 pm
Please log in for more thread options
Dont't waste your time with this. SHNotification* functions don't work
on smartphones.
Smartphones don't have bubble notifications..
Marcelo wrote:
> I'm trying to translate SHNOTIFICATIONDATA structure from C++ to C#. I found
> in www some versions but all of them without the union structure specified
> by SOFTKEYMENU and SOFTKEYNOTIFY.
>
> Originally this structure is:
> typedef struct _SHNOTIFICATIONDATA{
> DWORD cbStruct;
> DWORD dwID;
> SHNP npPriority;
> DWORD csDuration;
> HICON hicon;
> DWORD grfFlags;
> CLSID clsid;
> HWND hwndSink;
> LPCTSTR pszHTML;
> LPCTSTR pszTitle;
> LPARAM lParam;
> union
> {
> SOFTKEYMENU skm;
> SOFTKEYNOTIFY rgskn[NOTIF_NUM_SOFTKEYS];
> }
> LPCTSTR pszTodaySK;
> LPCTSTR pszTodayExec;
> } SHNOTIFICATIONDATA;
>
> SOFTKEYNOTIFY structure is an array with two indexes. I
> think the len of SOFTKEYNOTIFY array structure and SOFTKEYMENU structure
> must be the same 'cause then begins at the same offset and are followed by
> pszTodaySK and pszTodayExec pointers. Someone knows where I can find how
> translate this?
>
> Thanks (and sorry if my english is so bad)
>
>
>
>
|