mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
parent
732f223ca0
commit
2c9c634a8e
2 changed files with 33 additions and 11 deletions
|
@ -25,17 +25,6 @@ ShortSizeFormatW(LONGLONG llNumber)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unimplemented
|
||||
*/
|
||||
EXTERN_C BOOL
|
||||
WINAPI
|
||||
SHFindComputer(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
|
||||
{
|
||||
FIXME("SHFindComputer() stub\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unimplemented
|
||||
*/
|
||||
|
|
|
@ -66,3 +66,36 @@ SheRemoveQuotesW(LPWSTR psz)
|
|||
|
||||
return psz;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* SHFindComputer [SHELL32.91]
|
||||
*
|
||||
* Invokes the shell search in My Computer. Used in SHFindFiles.
|
||||
* Two parameters are ignored.
|
||||
*/
|
||||
EXTERN_C BOOL
|
||||
WINAPI
|
||||
SHFindComputer(LPCITEMIDLIST pidlRoot, LPCITEMIDLIST pidlSavedSearch)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(pidlRoot);
|
||||
UNREFERENCED_PARAMETER(pidlSavedSearch);
|
||||
|
||||
TRACE("%p %p\n", pidlRoot, pidlSavedSearch);
|
||||
|
||||
IContextMenu *pCM;
|
||||
HRESULT hr = CoCreateInstance(CLSID_ShellSearchExt, NULL, CLSCTX_INPROC_SERVER,
|
||||
IID_IContextMenu, (void **)&pCM);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
ERR("0x%08X\n", hr);
|
||||
return hr;
|
||||
}
|
||||
|
||||
CMINVOKECOMMANDINFO InvokeInfo = { sizeof(InvokeInfo) };
|
||||
InvokeInfo.lpParameters = "{996E1EB1-B524-11D1-9120-00A0C98BA67D}";
|
||||
InvokeInfo.nShow = SW_SHOWNORMAL;
|
||||
hr = pCM->InvokeCommand(&InvokeInfo);
|
||||
pCM->Release();
|
||||
|
||||
return SUCCEEDED(hr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue