IShellView *pView = GetShellBrowser()->GetActiveSV();
if(pView)
{
IContextMenu *pCtx = NULL;
if(SUCCEEDED(pView->GetItemObject(SVGIO_BACKGROUND,IID_IContextMenu,(void**)
&pCtx)))
{
CMINVOKECOMMANDINFO ci;
ZeroMemory(&ci,sizeof(CMINVOKECOMMANDINFO));
ci.cbSize = sizeof(CMINVOKECOMMANDINFO);
ci.hwnd = m_hWnd;
ci.lpVerb = CMDSTR_NEWFOLDERA;
pCtx->InvokeCommand(&ci);
pCtx->Release();
pCtx = NULL;
}
}
Under Windows 2000, this code crashes on the call to InvokeCommand. Anyone
have an idea what may be going on? Changing the CMINVOKECOMMANDINFO's to
EX's and using the unicode command strings still crashes.
Thanks,
Mike Scanlon
mike_s...@ibi.com