- pif:Pointer to an IPopupMenu object.
- ppiMenuModel:Pointer to an IMenuModel pointer, into which the function will return a pointer to the menu model that is attached to the popup menu.
int IPopupMenu_GetMenuModel(IPopupMenu *pif, IMenuModel **ppiMenuModel);
AEE_SUCCESS - If a pointer to the menu model is successfully retrieved. AEE_EFAILED - If a pointer to the menu model could not be retrieved.
A pointer to the attached menu model is returned in 'ppiMenuModel'.
If an application is using this property to add popup menu items (such as via IMenuModel_Add()), the application should also set its own free function for the model, via IMenuModel_SetPfnFree(). By default popup menu frees menu item data upon destruction or item removal.