1*fc0bc008SAndrew Rist /**************************************************************
2*fc0bc008SAndrew Rist *
3*fc0bc008SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*fc0bc008SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*fc0bc008SAndrew Rist * distributed with this work for additional information
6*fc0bc008SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*fc0bc008SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*fc0bc008SAndrew Rist * "License"); you may not use this file except in compliance
9*fc0bc008SAndrew Rist * with the License. You may obtain a copy of the License at
10*fc0bc008SAndrew Rist *
11*fc0bc008SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*fc0bc008SAndrew Rist *
13*fc0bc008SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*fc0bc008SAndrew Rist * software distributed under the License is distributed on an
15*fc0bc008SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*fc0bc008SAndrew Rist * KIND, either express or implied. See the License for the
17*fc0bc008SAndrew Rist * specific language governing permissions and limitations
18*fc0bc008SAndrew Rist * under the License.
19*fc0bc008SAndrew Rist *
20*fc0bc008SAndrew Rist *************************************************************/
21*fc0bc008SAndrew Rist
22cdf0e10cSrcweir #include "uwinapi.h"
23cdf0e10cSrcweir
SHSimpleIDListFromPathW_Failure(LPCWSTR lpPathW)24cdf0e10cSrcweir EXTERN_C LPITEMIDLIST WINAPI SHSimpleIDListFromPathW_Failure( LPCWSTR lpPathW )
25cdf0e10cSrcweir {
26cdf0e10cSrcweir SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
27cdf0e10cSrcweir return NULL;
28cdf0e10cSrcweir }
29cdf0e10cSrcweir
SHSimpleIDListFromPathW_WINDOWS(LPCWSTR lpPathW)30cdf0e10cSrcweir EXTERN_C LPITEMIDLIST WINAPI SHSimpleIDListFromPathW_WINDOWS( LPCWSTR lpPathW )
31cdf0e10cSrcweir {
32cdf0e10cSrcweir AUTO_WSTR2STR( lpPath );
33cdf0e10cSrcweir
34cdf0e10cSrcweir return SHSimpleIDListFromPathA( lpPathA );
35cdf0e10cSrcweir }
36cdf0e10cSrcweir
37cdf0e10cSrcweir
ResolveThunk_SHSimpleIDListFromPathW(FARPROC * lppfn,LPCSTR lpLibFileName,LPCSTR lpFuncName)38cdf0e10cSrcweir EXTERN_C void WINAPI ResolveThunk_SHSimpleIDListFromPathW( FARPROC *lppfn, LPCSTR lpLibFileName, LPCSTR lpFuncName )
39cdf0e10cSrcweir {
40cdf0e10cSrcweir if ( (LONG)GetVersion < 0 )
41cdf0e10cSrcweir *lppfn = (FARPROC)SHSimpleIDListFromPathW_WINDOWS;
42cdf0e10cSrcweir else
43cdf0e10cSrcweir {
44cdf0e10cSrcweir FARPROC lpfnResult = GetProcAddress( LoadLibraryA( lpLibFileName ), MAKEINTRESOURCE(162) );
45cdf0e10cSrcweir if ( !lpfnResult )
46cdf0e10cSrcweir lpfnResult = (FARPROC)SHSimpleIDListFromPathW_Failure;
47cdf0e10cSrcweir
48cdf0e10cSrcweir *lppfn = lpfnResult;
49cdf0e10cSrcweir }
50cdf0e10cSrcweir }
51cdf0e10cSrcweir
52cdf0e10cSrcweir
53cdf0e10cSrcweir DEFINE_CUSTOM_THUNK( kernel32, GetLongPathNameW, DWORD, WINAPI, GetLongPathNameW, ( LPCWSTR lpShortPathW, LPWSTR lpLongPathW, DWORD cchBuffer ) );
54