merge the formfield patch from ooo-build
[ooovba.git] / sal / systools / win32 / uwinapi / SHILCreateFromPathW.cpp
blobaa2c489a070044b1042e35198e83da4bf76b6965
1 #include "uwinapi.h"
3 EXTERN_C LPITEMIDLIST WINAPI SHSimpleIDListFromPathW_Failure( LPCWSTR lpPathW )
5 SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
6 return NULL;
9 EXTERN_C LPITEMIDLIST WINAPI SHSimpleIDListFromPathW_WINDOWS( LPCWSTR lpPathW )
11 AUTO_WSTR2STR( lpPath );
13 return SHSimpleIDListFromPathA( lpPathA );
17 EXTERN_C void WINAPI ResolveThunk_SHSimpleIDListFromPathW( FARPROC *lppfn, LPCSTR lpLibFileName, LPCSTR lpFuncName )
19 if ( (LONG)GetVersion < 0 )
20 *lppfn = (FARPROC)SHSimpleIDListFromPathW_WINDOWS;
21 else
23 FARPROC lpfnResult = GetProcAddress( LoadLibraryA( lpLibFileName ), MAKEINTRESOURCE(162) );
24 if ( !lpfnResult )
25 lpfnResult = (FARPROC)SHSimpleIDListFromPathW_Failure;
27 *lppfn = lpfnResult;
32 DEFINE_CUSTOM_THUNK( kernel32, GetLongPathNameW, DWORD, WINAPI, GetLongPathNameW, ( LPCWSTR lpShortPathW, LPWSTR lpLongPathW, DWORD cchBuffer ) );