Changeset 1700 for trunk/include


Ignore:
Timestamp:
Nov 11, 1999, 12:35:15 AM (26 years ago)
Author:
phaller
Message:

Fix: update to WINE 19991108

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/wine/obj_shellfolder.h

    r641 r1700  
    1 /* $Id: obj_shellfolder.h,v 1.5 1999-08-22 22:52:10 sandervl Exp $ */
     1/* $Id: obj_shellfolder.h,v 1.6 1999-11-10 23:35:15 phaller Exp $ */
    22/*
    33 * Defines the COM interfaces and APIs related to IShellFolder
     
    1212#include "wine/obj_moniker.h"           /* for LPBC */
    1313#include "wine/obj_enumidlist.h"
     14#include "wine/obj_oleaut.h"
    1415#include "winbase.h"
    1516#include "shell.h"
     
    5051typedef struct IPersistFolder IPersistFolder, *LPPERSISTFOLDER;
    5152
    52 
    53 /*****************************************************************************
    54  * IShellFolder::GetDisplayNameOf/SetNameOf uFlags
     53DEFINE_GUID(IID_IShellFolder2,  0xB82C5AA8, 0xA41B, 0x11D2, 0xBE, 0x32, 0x0, 0xc0, 0x4F, 0xB9, 0x36, 0x61);
     54typedef struct IShellFolder2 IShellFolder2, *LPSHELLFOLDER2;
     55
     56DEFINE_GUID(IID_IEnumExtraSearch,  0xE700BE1, 0x9DB6, 0x11D1, 0xA1, 0xCE, 0x0, 0xc0, 0x4F, 0xD7, 0x5D, 0x13);
     57typedef struct IEnumExtraSearch IEnumExtraSearch, *LPENUMEXTRASEARCH;
     58
     59/*****************************************************************************
     60 * IEnumExtraSearch interface
     61 */
     62
     63typedef struct
     64{
     65  GUID  guidSearch;
     66  WCHAR wszFriendlyName[80];
     67  WCHAR wszMenuText[80];
     68  WCHAR wszHelpText[MAX_PATH];
     69  WCHAR wszUrl[2084];
     70  WCHAR wszIcon[MAX_PATH+10];
     71  WCHAR wszGreyIcon[MAX_PATH+10];
     72  WCHAR wszClrIcon[MAX_PATH+10];
     73} EXTRASEARCH,* LPEXTRASEARCH;
     74
     75#define ICOM_INTERFACE IEnumExtraSearch
     76#define IEnumExtraSearch_METHODS \
     77    ICOM_METHOD3(HRESULT, Next, ULONG, celt, LPEXTRASEARCH*, rgelt, ULONG*, pceltFetched) \
     78    ICOM_METHOD1(HRESULT, Skip, ULONG, celt) \
     79    ICOM_METHOD (HRESULT, Reset) \
     80    ICOM_METHOD1(HRESULT, Clone, IEnumExtraSearch**, ppenum)
     81#define IEnumExtraSearch_IMETHODS \
     82    IUnknown_IMETHODS \
     83    IEnumExtraSearch_METHODS
     84ICOM_DEFINE(IEnumExtraSearch,IUnknown)
     85#undef ICOM_INTERFACE
     86
     87/*** IUnknown methods ***/
     88#define IEnumIDList_QueryInterface(p,a,b)       ICOM_CALL2(QueryInterface,p,a,b)
     89#define IEnumIDList_AddRef(p)                   ICOM_CALL (AddRef,p)
     90#define IEnumIDList_Release(p)                  ICOM_CALL (Release,p)
     91/*** IEnumIDList methods ***/
     92#define IEnumIDList_Next(p,a,b,c)               ICOM_CALL3(Next,p,a,b,c)
     93#define IEnumIDList_Skip(p,a)                   ICOM_CALL1(Skip,p,a)
     94#define IEnumIDList_Reset(p)                    ICOM_CALL(Reset,p)
     95#define IEnumIDList_Clone(p,a)                  ICOM_CALL1(Clone,p,a)
     96
     97/*****************************************************************************
     98 * IShellFolder::GetDisplayNameOf/SetNameOf uFlags
    5599 */
    56100typedef enum
     
    61105
    62106/*****************************************************************************
    63  * IShellFolder::EnumObjects 
     107 * IShellFolder::EnumObjects
    64108 */
    65109typedef enum tagSHCONTF
     
    70114
    71115/*****************************************************************************
    72  * IShellFolder::GetAttributesOf flags 
     116 * IShellFolder::GetAttributesOf flags
    73117 */
    74118#define SFGAO_CANCOPY           DROPEFFECT_COPY /* Objects can be copied */
     
    158202    ICOM_METHOD6( HRESULT, GetUIObjectOf, HWND, hwndOwner, UINT, cidl, LPCITEMIDLIST *, apidl, REFIID, riid, UINT *, prgfInOut, LPVOID *, ppvOut)\
    159203    ICOM_METHOD3( HRESULT, GetDisplayNameOf, LPCITEMIDLIST, pidl, DWORD, uFlags, LPSTRRET, lpName)\
    160     ICOM_METHOD5( HRESULT, SetNameOf, HWND, hwndOwner, LPCITEMIDLIST, pidl,LPCOLESTR, lpszName, DWORD, uFlags,LPITEMIDLIST *, ppidlOut)\
    161     ICOM_METHOD2( HRESULT, GetFolderPath, LPSTR, lpszOut, DWORD, dwOutSize)
     204    ICOM_METHOD5( HRESULT, SetNameOf, HWND, hwndOwner, LPCITEMIDLIST, pidl,LPCOLESTR, lpszName, DWORD, uFlags,LPITEMIDLIST *, ppidlOut)
    162205#define IShellFolder_IMETHODS \
    163206    IUnknown_IMETHODS \
     
    166209#undef ICOM_INTERFACE
    167210
    168 #ifdef ICOM_CINTERFACE
    169211/*** IUnknown methods ***/
    170212#define IShellFolder_QueryInterface(p,a,b)              ICOM_CALL2(QueryInterface,p,a,b)
     
    182224#define IShellFolder_GetDisplayNameOf(p,a,b,c)          ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
    183225#define IShellFolder_SetNameOf(p,a,b,c,d,e)             ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
    184 #define IShellFolder_GetFolderPath(p,a,b)               ICOM_CALL2(GetFolderPath,p,a,b)
    185 #endif
     226
     227/*****************************************************************************
     228 * IShellFolder2 interface
     229 */
     230/* IShellFolder2 */
     231
     232/* GetDefaultColumnState */
     233typedef enum
     234{
     235        SHCOLSTATE_TYPE_STR     = 0x00000001,
     236        SHCOLSTATE_TYPE_INT     = 0x00000002,
     237        SHCOLSTATE_TYPE_DATE    = 0x00000003,
     238        SHCOLSTATE_TYPEMASK     = 0x0000000F,
     239        SHCOLSTATE_ONBYDEFAULT  = 0x00000010,
     240        SHCOLSTATE_SLOW         = 0x00000020,
     241        SHCOLSTATE_EXTENDED     = 0x00000040,
     242        SHCOLSTATE_SECONDARYUI  = 0x00000080,
     243        SHCOLSTATE_HIDDEN       = 0x00000100
     244} SHCOLSTATE;
     245
     246typedef struct
     247{
     248        GUID    fmtid;
     249        DWORD   pid;
     250} SHCOLUMNID, *LPSHCOLUMNID;
     251typedef const SHCOLUMNID* LPCSHCOLUMNID;
     252
     253/* GetDetailsEx */
     254#define PID_FINDDATA            0
     255#define PID_NETRESOURCE         1
     256#define PID_DESCRIPTIONID       2
     257
     258typedef struct
     259{
     260        int     fmt;
     261        int     cxChar;
     262        STRRET  str;
     263} SHELLDETAILS, *LPSHELLDETAILS;
     264
     265#define ICOM_INTERFACE IShellFolder2
     266#define IShellFolder2_METHODS \
     267    ICOM_METHOD1( HRESULT, GetDefaultSearchGUID, LPGUID, lpguid)\
     268    ICOM_METHOD1( HRESULT, EnumSearches, LPENUMEXTRASEARCH *, ppEnum) \
     269    ICOM_METHOD3( HRESULT, GetDefaultColumn, DWORD, dwReserved, ULONG *, pSort, ULONG *, pDisplay)\
     270    ICOM_METHOD2( HRESULT, GetDefaultColumnState, UINT, iColumn, DWORD *, pcsFlags)\
     271    ICOM_METHOD3( HRESULT, GetDetailsEx, LPCITEMIDLIST, pidl, const SHCOLUMNID *, pscid, VARIANT *, pv)\
     272    ICOM_METHOD3( HRESULT, GetDetailsOf, LPCITEMIDLIST, pidl, UINT, iColumn, LPSHELLDETAILS, pDetails)\
     273    ICOM_METHOD2( HRESULT, MapNameToSCID, LPCWSTR, pwszName, SHCOLUMNID *, pscid)
     274#define IShellFolder2_IMETHODS \
     275    IShellFolder_METHODS \
     276    IShellFolder2_METHODS
     277ICOM_DEFINE(IShellFolder2, IShellFolder)
     278#undef ICOM_INTERFACE
     279
     280/*** IUnknown methods ***/
     281#define IShellFolder2_QueryInterface(p,a,b)             ICOM_CALL2(QueryInterface,p,a,b)
     282#define IShellFolder2_AddRef(p)                         ICOM_CALL (AddRef,p)
     283#define IShellFolder2_Release(p)                        ICOM_CALL (Release,p)
     284/*** IShellFolder methods ***/
     285#define IShellFolder2_ParseDisplayName(p,a,b,c,d,e,f)   ICOM_CALL6(ParseDisplayName,p,a,b,c,d,e,f)
     286#define IShellFolder2_EnumObjects(p,a,b,c)              ICOM_CALL3(EnumObjects,p,a,b,c)
     287#define IShellFolder2_BindToObject(p,a,b,c,d)           ICOM_CALL4(BindToObject,p,a,b,c,d)
     288#define IShellFolder2_BindToStorage(p,a,b,c,d)          ICOM_CALL4(BindToStorage,p,a,b,c,d)
     289#define IShellFolder2_CompareIDs(p,a,b,c)               ICOM_CALL3(CompareIDs,p,a,b,c)
     290#define IShellFolder2_CreateViewObject(p,a,b,c)         ICOM_CALL3(CreateViewObject,p,a,b,c)
     291#define IShellFolder2_GetAttributesOf(p,a,b,c)          ICOM_CALL3(GetAttributesOf,p,a,b,c)
     292#define IShellFolder2_GetUIObjectOf(p,a,b,c,d,e,f)      ICOM_CALL6(GetUIObjectOf,p,a,b,c,d,e,f)
     293#define IShellFolder2_GetDisplayNameOf(p,a,b,c)         ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
     294#define IShellFolder2_SetNameOf(p,a,b,c,d,e)            ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
     295/*** IShellFolder2 methods ***/
     296#define IShellFolder2_GetDefaultSearchGUID(p,a)         ICOM_CALL1(GetDefaultSearchGUID,p,a)
     297#define IShellFolder2_EnumSearches(p,a)                 ICOM_CALL1(EnumSearches,p,a)
     298#define IShellFolder2_GetDefaultColumn(p,a,b,c)         ICOM_CALL3(GetDefaultColumn,p,a,b,c)
     299#define IShellFolder2_GetDefaultColumnState(p,a,b)      ICOM_CALL2(GetDefaultColumnState,p,a,b)
     300#define IShellFolder2_GetDetailsEx(p,a,b,c)             ICOM_CALL3(GetDetailsEx,p,a,b,c)
     301#define IShellFolder2_GetDetailsOf(p,a,b,c)             ICOM_CALL3(GetDetailsOf,p,a,b,c)
     302#define IShellFolder2_MapNameToSCID(p,a,b)              ICOM_CALL2(MapNameToSCID,p,a,b)
    186303
    187304/*****************************************************************************
     
    189306 */
    190307
    191 DEFINE_GUID (CLSID_SFMyComp,0x20D04FE0,0x3AEA,0x1069,0xA2,0xD8,0x08,0x00,0x2B,0x30,0x30,0x9D);
     308/* ClassID's */
     309DEFINE_GUID (CLSID_SFMyComp,0x20D04FE0,0x3AEA,0x1069,0xA2,0xD8,0x08,0x00,0x2B,0x30,0x30,0x9D);
    192310DEFINE_GUID (CLSID_SFINet,  0x871C5380,0x42A0,0x1069,0xA2,0xEA,0x08,0x00,0x2B,0x30,0x30,0x9D);
    193311DEFINE_GUID (CLSID_SFFile,  0xF3364BA0,0x65B9,0x11CE,0xA9,0xBA,0x00,0xAA,0x00,0x4A,0xE8,0x37);
     
    202320#undef ICOM_INTERFACE
    203321
    204 #ifdef ICOM_CINTERFACE
    205322/*** IUnknown methods ***/
    206 #define IPersistFolder_QueryInterface(p,a,b)    ICOM_CALL2(QueryInterface,p,a,b) 
     323#define IPersistFolder_QueryInterface(p,a,b)    ICOM_CALL2(QueryInterface,p,a,b)
    207324#define IPersistFolder_AddRef(p)                ICOM_CALL (AddRef,p)
    208325#define IPersistFolder_Release(p)               ICOM_CALL (Release,p)
     
    211328/*** IPersistFolder methods ***/
    212329#define IPersistFolder_Initialize(p,a)          ICOM_CALL1(Initialize,p,a)
    213 #endif
    214330
    215331#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.