1999-02-24 16:57:20 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to IShellLink.
|
|
|
|
*
|
|
|
|
* Depends on 'obj_base.h'.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Juergen Schmied
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-02-24 16:57:20 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_SHELLLINK_H
|
|
|
|
#define __WINE_WINE_OBJ_SHELLLINK_H
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-24 16:57:20 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
2000-08-03 06:21:23 +02:00
|
|
|
typedef struct IShellLinkA IShellLinkA,*LPSHELLLINK;
|
1999-02-24 16:57:20 +01:00
|
|
|
typedef struct IShellLinkW IShellLinkW,*LPSHELLLINKW;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
1999-02-24 16:57:20 +01:00
|
|
|
*/
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef enum
|
1999-02-24 16:57:20 +01:00
|
|
|
{ SLR_NO_UI = 0x0001,
|
|
|
|
SLR_ANY_MATCH = 0x0002,
|
|
|
|
SLR_UPDATE = 0x0004
|
|
|
|
} SLR_FLAGS;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2002-06-01 01:06:46 +02:00
|
|
|
* GetPath fFlags
|
1999-02-24 16:57:20 +01:00
|
|
|
*/
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef enum
|
1999-02-24 16:57:20 +01:00
|
|
|
{ SLGP_SHORTPATH = 0x0001,
|
|
|
|
SLGP_UNCPRIORITY = 0x0002
|
|
|
|
} SLGP_FLAGS;
|
|
|
|
/*****************************************************************************
|
|
|
|
* IShellLink interface
|
|
|
|
*/
|
2000-08-03 06:21:23 +02:00
|
|
|
#define ICOM_INTERFACE IShellLinkA
|
|
|
|
#define IShellLinkA_METHODS \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD4( HRESULT, GetPath, LPSTR, pszFile, INT, cchMaxPath, WIN32_FIND_DATAA *, pfd, DWORD, fFlags) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, GetIDList, LPITEMIDLIST *, ppidl) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetIDList, LPCITEMIDLIST, pidl) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetDescription, LPSTR, pszName, INT, cchMaxName) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetDescription, LPCSTR, pszName) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetWorkingDirectory, LPSTR, pszDir,INT, cchMaxPath) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetWorkingDirectory, LPCSTR, pszDir) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetArguments, LPSTR, pszArgs, INT, cchMaxPath) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetArguments, LPCSTR, pszArgs) \
|
|
|
|
ICOM_METHOD1( HRESULT, GetHotkey, WORD*, pwHotkey) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetHotkey, WORD, wHotkey) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD1( HRESULT, GetShowCmd, INT*, piShowCmd) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetShowCmd, INT, iShowCmd) \
|
|
|
|
ICOM_METHOD3( HRESULT, GetIconLocation, LPSTR, pszIconPath, INT, cchIconPath,INT *, piIcon) \
|
|
|
|
ICOM_METHOD2( HRESULT, SetIconLocation, LPCSTR, pszIconPath,INT, iIcon) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD2( HRESULT, SetRelativePath, LPCSTR, pszPathRel, DWORD, dwReserved) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, Resolve, HWND, hwnd, DWORD, fFlags) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetPath, LPCSTR, pszFile)
|
2000-08-03 06:21:23 +02:00
|
|
|
#define IShellLinkA_IMETHODS \
|
1999-02-24 16:57:20 +01:00
|
|
|
IUnknown_IMETHODS \
|
2000-08-03 06:21:23 +02:00
|
|
|
IShellLinkA_METHODS
|
|
|
|
ICOM_DEFINE(IShellLinkA,IUnknown)
|
1999-02-24 16:57:20 +01:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2000-08-03 06:21:23 +02:00
|
|
|
#define IShellLinkA_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IShellLinkA_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IShellLinkA_Release(p) ICOM_CALL (Release,p)
|
1999-02-24 16:57:20 +01:00
|
|
|
/*** IShellLink methods ***/
|
2000-08-03 06:21:23 +02:00
|
|
|
#define IShellLinkA_GetPath(p,a,b,c,d) ICOM_CALL4(GetPath,p,a,b,c,d)
|
|
|
|
#define IShellLinkA_GetIDList(p,a) ICOM_CALL1(GetIDList,p,a)
|
|
|
|
#define IShellLinkA_SetIDList(p,a) ICOM_CALL1(SetIDList,p,a)
|
|
|
|
#define IShellLinkA_GetDescription(p,a,b) ICOM_CALL2(GetDescription,p,a,b)
|
|
|
|
#define IShellLinkA_SetDescription(p,a) ICOM_CALL1(SetDescription,p,a)
|
|
|
|
#define IShellLinkA_GetWorkingDirectory(p,a,b) ICOM_CALL2(GetWorkingDirectory,p,a,b)
|
|
|
|
#define IShellLinkA_SetWorkingDirectory(p,a) ICOM_CALL1(SetWorkingDirectory,p,a)
|
|
|
|
#define IShellLinkA_GetArguments(p,a,b) ICOM_CALL2(GetArguments,p,a,b)
|
|
|
|
#define IShellLinkA_SetArguments(p,a) ICOM_CALL1(SetArguments,p,a)
|
|
|
|
#define IShellLinkA_GetHotkey(p,a) ICOM_CALL1(GetHotkey,p,a)
|
|
|
|
#define IShellLinkA_SetHotkey(p,a) ICOM_CALL1(SetHotkey,p,a)
|
|
|
|
#define IShellLinkA_GetShowCmd(p,a) ICOM_CALL1(GetShowCmd,p,a)
|
|
|
|
#define IShellLinkA_SetShowCmd(p,a) ICOM_CALL1(SetShowCmd,p,a)
|
|
|
|
#define IShellLinkA_GetIconLocation(p,a,b,c) ICOM_CALL3(GetIconLocation,p,a,b,c)
|
|
|
|
#define IShellLinkA_SetIconLocation(p,a,b) ICOM_CALL2(SetIconLocation,p,a,b)
|
|
|
|
#define IShellLinkA_SetRelativePath(p,a,b) ICOM_CALL2(SetRelativePath,p,a,b)
|
|
|
|
#define IShellLinkA_Resolve(p,a,b) ICOM_CALL2(Resolve,p,a,b)
|
|
|
|
#define IShellLinkA_SetPath(p,a) ICOM_CALL1(SetPath,p,a)
|
1999-02-24 16:57:20 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IShellLinkW interface
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IShellLinkW
|
|
|
|
#define IShellLinkW_METHODS \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD4( HRESULT, GetPath, LPWSTR, pszFile, INT, cchMaxPath, WIN32_FIND_DATAA *, pfd, DWORD, fFlags) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, GetIDList, LPITEMIDLIST *, ppidl) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetIDList, LPCITEMIDLIST, pidl) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetDescription, LPWSTR, pszName, INT, cchMaxName) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetDescription, LPCWSTR, pszName) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetWorkingDirectory, LPWSTR, pszDir,INT, cchMaxPath) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetWorkingDirectory, LPCWSTR, pszDir) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, GetArguments, LPWSTR, pszArgs, INT, cchMaxPath) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetArguments, LPCWSTR, pszArgs) \
|
|
|
|
ICOM_METHOD1( HRESULT, GetHotkey, WORD*, pwHotkey) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetHotkey, WORD, wHotkey) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD1( HRESULT, GetShowCmd, INT*, piShowCmd) \
|
|
|
|
ICOM_METHOD1( HRESULT, SetShowCmd, INT, iShowCmd) \
|
|
|
|
ICOM_METHOD3( HRESULT, GetIconLocation, LPWSTR, pszIconPath, INT, cchIconPath,INT *, piIcon) \
|
|
|
|
ICOM_METHOD2( HRESULT, SetIconLocation, LPCWSTR, pszIconPath,INT, iIcon) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD2( HRESULT, SetRelativePath, LPCWSTR, pszPathRel, DWORD, dwReserved) \
|
1999-02-26 12:11:13 +01:00
|
|
|
ICOM_METHOD2( HRESULT, Resolve, HWND, hwnd, DWORD, fFlags) \
|
1999-02-24 16:57:20 +01:00
|
|
|
ICOM_METHOD1( HRESULT, SetPath, LPCWSTR, pszFile)
|
|
|
|
#define IShellLinkW_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IShellLinkW_METHODS
|
|
|
|
ICOM_DEFINE(IShellLinkW,IUnknown)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IShellLinkW_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IShellLinkW_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IShellLinkW_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IShellLinkW methods ***/
|
|
|
|
#define IShellLinkW_GetPath(p,a,b,c,d) ICOM_CALL4(GetPath,p,a,b,c,d)
|
|
|
|
#define IShellLinkW_GetIDList(p,a) ICOM_CALL1(GetIDList,p,a)
|
|
|
|
#define IShellLinkW_SetIDList(p,a) ICOM_CALL1(SetIDList,p,a)
|
|
|
|
#define IShellLinkW_GetDescription(p,a,b) ICOM_CALL2(GetDescription,p,a,b)
|
|
|
|
#define IShellLinkW_SetDescription(p,a) ICOM_CALL1(SetDescription,p,a)
|
|
|
|
#define IShellLinkW_GetWorkingDirectory(p,a,b) ICOM_CALL2(GetWorkingDirectory,p,a,b)
|
|
|
|
#define IShellLinkW_SetWorkingDirectory(p,a) ICOM_CALL1(SetWorkingDirectory,p,a)
|
|
|
|
#define IShellLinkW_GetArguments(p,a,b) ICOM_CALL2(GetArguments,p,a,b)
|
|
|
|
#define IShellLinkW_SetArguments(p,a) ICOM_CALL1(SetArguments,p,a)
|
|
|
|
#define IShellLinkW_GetHotkey(p,a) ICOM_CALL1(GetHotkey,p,a)
|
|
|
|
#define IShellLinkW_SetHotkey(p,a) ICOM_CALL1(SetHotkey,p,a)
|
|
|
|
#define IShellLinkW_GetShowCmd(p,a) ICOM_CALL1(GetShowCmd,p,a)
|
|
|
|
#define IShellLinkW_SetShowCmd(p,a) ICOM_CALL1(SetShowCmd,p,a)
|
|
|
|
#define IShellLinkW_GetIconLocation(p,a,b,c) ICOM_CALL3(GetIconLocation,p,a,b,c)
|
|
|
|
#define IShellLinkW_SetIconLocation(p,a,b) ICOM_CALL2(SetIconLocation,p,a,b)
|
|
|
|
#define IShellLinkW_SetRelativePath(p,a,b) ICOM_CALL2(SetRelativePath,p,a,b)
|
|
|
|
#define IShellLinkW_Resolve(p,a,b) ICOM_CALL2(Resolve,p,a,b)
|
2000-08-03 06:21:23 +02:00
|
|
|
#define IShellLinkW_SetPath(p,a) ICOM_CALL1(SetPath,p,a)
|
1999-02-24 16:57:20 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-24 16:57:20 +01:00
|
|
|
#endif /* __WINE_WINE_OBJ_SHELLLINK_H */
|