link dynamicly to SHBindToParent()

svn path=/trunk/; revision=7425
This commit is contained in:
Martin Fuchs
2004-01-03 18:35:31 +00:00
parent 398b10102e
commit 8d3be28398
2 changed files with 7 additions and 2 deletions
@@ -185,7 +185,12 @@ void FindProgramDlg::collect_programs_callback(Entry* entry, void* param)
LPCITEMIDLIST pidl_last = NULL;
IShellFolder* pFolder;
HRESULT hr = SHBindToParent(shell_path, IID_IShellFolder, (LPVOID*)&pFolder, &pidl_last);
static DynamicFct<HRESULT(WINAPI*)(LPCITEMIDLIST, REFIID, LPVOID*, LPCITEMIDLIST*)> SHBindToParent(TEXT("SHELL32"), "SHBindToParent");
if (!SHBindToParent)
return;
HRESULT hr = (*SHBindToParent)(shell_path, IID_IShellFolder, (LPVOID*)&pFolder, &pidl_last);
if (SUCCEEDED(hr)) {
hr = pFolder->GetUIObjectOf(pThis->_hwnd, 1, &pidl_last, IID_IShellLink, NULL, (LPVOID*)&pShellLink);
@@ -3,7 +3,7 @@
<tr>
<td><address style="align: right;"><small>
ROS Explorer Source Code Documentation
<br>generated on 02.01.2004 by <a href="http://www.doxygen.org/index.html">
<br>generated on 03.01.2004 by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address>
</td>