Retrieve the Menu CommandEx
Example code
CComPtr<IISmpCommands>m_IISMPCommands;
HRESULT hr;
CString strFunName;
long lComdEx;
hr=m_IISMPCommands.CoCreateInstance(CLSID_ISmpCommands);
if(FAILED(hr))
{
AfxMessageBox(_T("IISmpCommandsInterface initialisation failed"));
return FALSE;
}
m_IISMPCommands->get_MenuCommandEx(m_lSessionID,strFunName.AllocSysString(),&lComdEx);