1fc0bc008SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3fc0bc008SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4fc0bc008SAndrew Rist * or more contributor license agreements. See the NOTICE file
5fc0bc008SAndrew Rist * distributed with this work for additional information
6fc0bc008SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7fc0bc008SAndrew Rist * to you under the Apache License, Version 2.0 (the
8fc0bc008SAndrew Rist * "License"); you may not use this file except in compliance
9fc0bc008SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11fc0bc008SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13fc0bc008SAndrew Rist * Unless required by applicable law or agreed to in writing,
14fc0bc008SAndrew Rist * software distributed under the License is distributed on an
15fc0bc008SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16fc0bc008SAndrew Rist * KIND, either express or implied. See the License for the
17fc0bc008SAndrew Rist * specific language governing permissions and limitations
18fc0bc008SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20fc0bc008SAndrew Rist *************************************************************/
21fc0bc008SAndrew Rist
22fc0bc008SAndrew Rist
23cdf0e10cSrcweir #if defined(_MSC_VER) && (_MSC_VER >= 1400)
24cdf0e10cSrcweir #pragma warning(disable:4740)
25cdf0e10cSrcweir #endif
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include "macros.h"
28cdf0e10cSrcweir
SHCreateItemFromParsingName_Failure(PCWSTR pszPath,IBindCtx * pbc,REFIID riid,void ** ppv)29*e9cec295SDamjan Jovanovic static HRESULT WINAPI SHCreateItemFromParsingName_Failure (PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv)
30*e9cec295SDamjan Jovanovic {
31*e9cec295SDamjan Jovanovic return E_NOTIMPL;
32*e9cec295SDamjan Jovanovic }
33*e9cec295SDamjan Jovanovic
34*e9cec295SDamjan Jovanovic extern HRESULT (WINAPI *pSHCreateItemFromParsingName)(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv);
35*e9cec295SDamjan Jovanovic
SHCreateItemFromParsingName_Thunk(PCWSTR pszPath,IBindCtx * pbc,REFIID riid,void ** ppv)36*e9cec295SDamjan Jovanovic static HRESULT WINAPI SHCreateItemFromParsingName_Thunk (PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv)
37*e9cec295SDamjan Jovanovic {
38*e9cec295SDamjan Jovanovic ResolveThunk_TRYLOAD( (FARPROC*)&pSHCreateItemFromParsingName, "shell32.dll", "SHCreateItemFromParsingName", 0, (FARPROC)SHCreateItemFromParsingName_Failure);
39*e9cec295SDamjan Jovanovic return pSHCreateItemFromParsingName(pszPath, pbc, riid, ppv);
40*e9cec295SDamjan Jovanovic }
41*e9cec295SDamjan Jovanovic
SHCreateItemFromParsingName(PCWSTR pszPath,IBindCtx * pbc,REFIID riid,void ** ppv)42*e9cec295SDamjan Jovanovic extern "C" HRESULT WINAPI SHCreateItemFromParsingName (PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv)
43*e9cec295SDamjan Jovanovic {
44*e9cec295SDamjan Jovanovic return pSHCreateItemFromParsingName(pszPath, pbc, riid, ppv);
45*e9cec295SDamjan Jovanovic }
46*e9cec295SDamjan Jovanovic
47*e9cec295SDamjan Jovanovic HRESULT (WINAPI *pSHCreateItemFromParsingName)(PCWSTR pszPath, IBindCtx *pbc, REFIID riid, void **ppv) = SHCreateItemFromParsingName_Thunk;
48