The menu to get entries from.
An optional pointer to obtain the number of entries in the menu.
A null-terminated list of entries within the given menu. The pointer becomes invalid when any function that inserts or deletes entries in the menu is called.
Threadsafety: This function should be called on the thread that created the tray.
Returns a list of entries in the menu, in order.