Mhh als Fehler kommt "Falscher Parameter"..
hab noch das hier gefunden:
Zitat von
MSDN:
To retrieve a menu item of type MFT_STRING, first find the size of the string by setting the dwTypeData member of MENUITEMINFO to NULL and then calling GetMenuItemInfo. The value of cch+1 is the size needed. Then allocate a buffer of this size, place the pointer to the buffer in dwTypeData, increment cch by one, and then call GetMenuItemInfo once again to fill the buffer with the string.
If the retrieved menu item is of some other type, then GetMenuItemInfo sets the dwTypeData member to a value whose type is specified by the fTypefType member and sets cch to 0.
Windows 98/Me and Windows 2000/XP: dwTypeData and cch are used with MIIM_STRING.
Windows 95/98/Me: GetMenuItemInfoW is supported by the Microsoft Layer for
Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for
Unicode on Windows 95/98/Me Systems.
Aber das verstehe ich irgendwie nicht!