mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
link dynamicly to SHBindToParent()
svn path=/trunk/; revision=7425
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user