Changeset 1700 for trunk/include
- Timestamp:
- Nov 11, 1999, 12:35:15 AM (26 years ago)
- 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 sandervlExp $ */1 /* $Id: obj_shellfolder.h,v 1.6 1999-11-10 23:35:15 phaller Exp $ */ 2 2 /* 3 3 * Defines the COM interfaces and APIs related to IShellFolder … … 12 12 #include "wine/obj_moniker.h" /* for LPBC */ 13 13 #include "wine/obj_enumidlist.h" 14 #include "wine/obj_oleaut.h" 14 15 #include "winbase.h" 15 16 #include "shell.h" … … 50 51 typedef struct IPersistFolder IPersistFolder, *LPPERSISTFOLDER; 51 52 52 53 /***************************************************************************** 54 * IShellFolder::GetDisplayNameOf/SetNameOf uFlags 53 DEFINE_GUID(IID_IShellFolder2, 0xB82C5AA8, 0xA41B, 0x11D2, 0xBE, 0x32, 0x0, 0xc0, 0x4F, 0xB9, 0x36, 0x61); 54 typedef struct IShellFolder2 IShellFolder2, *LPSHELLFOLDER2; 55 56 DEFINE_GUID(IID_IEnumExtraSearch, 0xE700BE1, 0x9DB6, 0x11D1, 0xA1, 0xCE, 0x0, 0xc0, 0x4F, 0xD7, 0x5D, 0x13); 57 typedef struct IEnumExtraSearch IEnumExtraSearch, *LPENUMEXTRASEARCH; 58 59 /***************************************************************************** 60 * IEnumExtraSearch interface 61 */ 62 63 typedef 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 84 ICOM_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 55 99 */ 56 100 typedef enum … … 61 105 62 106 /***************************************************************************** 63 * IShellFolder::EnumObjects 107 * IShellFolder::EnumObjects 64 108 */ 65 109 typedef enum tagSHCONTF … … 70 114 71 115 /***************************************************************************** 72 * IShellFolder::GetAttributesOf flags 116 * IShellFolder::GetAttributesOf flags 73 117 */ 74 118 #define SFGAO_CANCOPY DROPEFFECT_COPY /* Objects can be copied */ … … 158 202 ICOM_METHOD6( HRESULT, GetUIObjectOf, HWND, hwndOwner, UINT, cidl, LPCITEMIDLIST *, apidl, REFIID, riid, UINT *, prgfInOut, LPVOID *, ppvOut)\ 159 203 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) 162 205 #define IShellFolder_IMETHODS \ 163 206 IUnknown_IMETHODS \ … … 166 209 #undef ICOM_INTERFACE 167 210 168 #ifdef ICOM_CINTERFACE169 211 /*** IUnknown methods ***/ 170 212 #define IShellFolder_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) … … 182 224 #define IShellFolder_GetDisplayNameOf(p,a,b,c) ICOM_CALL3(GetDisplayNameOf,p,a,b,c) 183 225 #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 */ 233 typedef 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 246 typedef struct 247 { 248 GUID fmtid; 249 DWORD pid; 250 } SHCOLUMNID, *LPSHCOLUMNID; 251 typedef const SHCOLUMNID* LPCSHCOLUMNID; 252 253 /* GetDetailsEx */ 254 #define PID_FINDDATA 0 255 #define PID_NETRESOURCE 1 256 #define PID_DESCRIPTIONID 2 257 258 typedef 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 277 ICOM_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) 186 303 187 304 /***************************************************************************** … … 189 306 */ 190 307 191 DEFINE_GUID (CLSID_SFMyComp,0x20D04FE0,0x3AEA,0x1069,0xA2,0xD8,0x08,0x00,0x2B,0x30,0x30,0x9D); 308 /* ClassID's */ 309 DEFINE_GUID (CLSID_SFMyComp,0x20D04FE0,0x3AEA,0x1069,0xA2,0xD8,0x08,0x00,0x2B,0x30,0x30,0x9D); 192 310 DEFINE_GUID (CLSID_SFINet, 0x871C5380,0x42A0,0x1069,0xA2,0xEA,0x08,0x00,0x2B,0x30,0x30,0x9D); 193 311 DEFINE_GUID (CLSID_SFFile, 0xF3364BA0,0x65B9,0x11CE,0xA9,0xBA,0x00,0xAA,0x00,0x4A,0xE8,0x37); … … 202 320 #undef ICOM_INTERFACE 203 321 204 #ifdef ICOM_CINTERFACE205 322 /*** 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) 207 324 #define IPersistFolder_AddRef(p) ICOM_CALL (AddRef,p) 208 325 #define IPersistFolder_Release(p) ICOM_CALL (Release,p) … … 211 328 /*** IPersistFolder methods ***/ 212 329 #define IPersistFolder_Initialize(p,a) ICOM_CALL1(Initialize,p,a) 213 #endif214 330 215 331 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.