SHELL32.ILFindLastID is exported by ordinal.
This commit is contained in:
parent
685aa44b2d
commit
28f0c36036
|
@ -46,6 +46,7 @@ static IMalloc *ppM;
|
||||||
static HRESULT (WINAPI *pSHBindToParent)(LPCITEMIDLIST, REFIID, LPVOID*, LPCITEMIDLIST*);
|
static HRESULT (WINAPI *pSHBindToParent)(LPCITEMIDLIST, REFIID, LPVOID*, LPCITEMIDLIST*);
|
||||||
static BOOL (WINAPI *pSHGetSpecialFolderPathW)(HWND, LPWSTR, int, BOOL);
|
static BOOL (WINAPI *pSHGetSpecialFolderPathW)(HWND, LPWSTR, int, BOOL);
|
||||||
static HRESULT (WINAPI *pStrRetToBufW)(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
|
static HRESULT (WINAPI *pStrRetToBufW)(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
|
||||||
|
static LPITEMIDLIST (WINAPI *pILFindLastID)(LPCITEMIDLIST);
|
||||||
|
|
||||||
static void init_function_pointers(void)
|
static void init_function_pointers(void)
|
||||||
{
|
{
|
||||||
|
@ -57,6 +58,8 @@ static void init_function_pointers(void)
|
||||||
{
|
{
|
||||||
pSHBindToParent = (void*)GetProcAddress(hmod, "SHBindToParent");
|
pSHBindToParent = (void*)GetProcAddress(hmod, "SHBindToParent");
|
||||||
pSHGetSpecialFolderPathW = (void*)GetProcAddress(hmod, "SHGetSpecialFolderPathW");
|
pSHGetSpecialFolderPathW = (void*)GetProcAddress(hmod, "SHGetSpecialFolderPathW");
|
||||||
|
pILFindLastID = (void *)GetProcAddress(hmod, (LPCSTR)16);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hmod = GetModuleHandleA("shlwapi.dll");
|
hmod = GetModuleHandleA("shlwapi.dll");
|
||||||
|
@ -379,7 +382,7 @@ static void test_GetDisplayName(void)
|
||||||
|
|
||||||
/* This test shows that Windows doesn't allocate a new pidlLast, but returns a pointer into
|
/* This test shows that Windows doesn't allocate a new pidlLast, but returns a pointer into
|
||||||
* pidlTestFile (In accordance with MSDN). */
|
* pidlTestFile (In accordance with MSDN). */
|
||||||
todo_wine{ok (ILFindLastID(pidlTestFile) == pidlLast,
|
todo_wine{ok (pILFindLastID(pidlTestFile) == pidlLast,
|
||||||
"SHBindToParent doesn't return the last id of the pidl param!\n");}
|
"SHBindToParent doesn't return the last id of the pidl param!\n");}
|
||||||
|
|
||||||
hr = IShellFolder_GetDisplayNameOf(psfPersonal, pidlLast, SHGDN_FORPARSING, &strret);
|
hr = IShellFolder_GetDisplayNameOf(psfPersonal, pidlLast, SHGDN_FORPARSING, &strret);
|
||||||
|
|
Loading…
Reference in New Issue