Click here to get back home

SHNOTIFICATIONDATA UNION

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SHNOTIFICATIONDATA UNION Marcelo 01-06-2008
Posted by Marcelo on January 6, 2008, 3:18 pm
Please log in for more thread options
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)





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)
>
>
>
>


Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap