/* * internal Shell32 Library definitions */ #ifndef __WINE_SHELL_MAIN_H #define __WINE_SHELL_MAIN_H /******************************************* * global SHELL32.DLL variables */ extern HINSTANCE shell32_hInstance; extern INT shell32_ObjCount; extern HIMAGELIST ShellSmallIconList; extern HIMAGELIST ShellBigIconList; /******************************************* * pointer to functions dynamically loaded */ extern void (WINAPI* pDLLInitComctl)(LPVOID); extern INT (WINAPI* pImageList_AddIcon) (HIMAGELIST himl, HICON hIcon); extern INT (WINAPI* pImageList_ReplaceIcon) (HIMAGELIST, INT, HICON); extern HIMAGELIST (WINAPI* pImageList_Create) (INT,INT,UINT,INT,INT); extern HICON (WINAPI* pImageList_GetIcon) (HIMAGELIST, INT, UINT); extern INT (WINAPI* pImageList_GetImageCount)(HIMAGELIST); extern LPVOID (WINAPI* pCOMCTL32_Alloc) (INT); extern BOOL (WINAPI* pCOMCTL32_Free) (LPVOID); extern HDPA (WINAPI* pDPA_Create) (INT); extern INT (WINAPI* pDPA_InsertPtr) (const HDPA, INT, LPVOID); extern BOOL (WINAPI* pDPA_Sort) (const HDPA, PFNDPACOMPARE, LPARAM); extern LPVOID (WINAPI* pDPA_GetPtr) (const HDPA, INT); extern BOOL (WINAPI* pDPA_Destroy) (const HDPA); extern INT (WINAPI* pDPA_Search) (const HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT); extern HICON (WINAPI *pLookupIconIdFromDirectoryEx)(LPBYTE dir, BOOL bIcon, INT width, INT height, UINT cFlag); extern HICON (WINAPI *pCreateIconFromResourceEx)(LPBYTE bits,UINT cbSize, BOOL bIcon, DWORD dwVersion, INT width, INT height,UINT cFlag); /* undocumented WINAPI functions not globaly exported */ LPITEMIDLIST WINAPI ILClone (LPCITEMIDLIST pidl); LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl); LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST iil1,LPCITEMIDLIST iil2); LPITEMIDLIST WINAPI ILFindLastID(LPITEMIDLIST pidl); DWORD WINAPI ILGetSize(LPITEMIDLIST pidl); HRESULT WINAPI SHILCreateFromPathA (LPSTR path, LPITEMIDLIST * ppidl, DWORD attributes); HRESULT WINAPI SHILCreateFromPathW (LPWSTR path, LPITEMIDLIST * ppidl, DWORD attributes); HRESULT WINAPI SHILCreateFromPathAW (LPVOID path, LPITEMIDLIST * ppidl, DWORD attributes); LPITEMIDLIST WINAPI ILCreateFromPathA(LPSTR path); LPITEMIDLIST WINAPI ILCreateFromPathW(LPWSTR path); LPITEMIDLIST WINAPI ILCreateFromPathAW(LPVOID path); DWORD WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList); HRESULT WINAPI StrRetToStrN (LPVOID dest, DWORD len, LPSTRRET src, LPITEMIDLIST pidl); /* Iconcache */ #define INVALID_INDEX -1 BOOL SIC_Initialize(void); /*INT32 SIC_GetIconIndex (LPCSTR sSourceFile, INT32 dwSourceIndex );*/ /* Classes Root */ BOOL HCR_MapTypeToValue ( LPCSTR szExtension, LPSTR szFileType, DWORD len); BOOL HCR_GetExecuteCommand ( LPCSTR szClass, LPCSTR szVerb, LPSTR szDest, DWORD len ); BOOL HCR_GetDefaultIcon (LPCSTR szClass, LPSTR szDest, DWORD len, LPDWORD dwNr); DWORD WINAPI ParseFieldA(LPCSTR src,DWORD field,LPSTR dst,DWORD len); HGLOBAL WINAPI SHAllocShared(LPVOID psrc, DWORD size, DWORD procID); LPVOID WINAPI SHLockShared(HANDLE hmem, DWORD procID); BOOL WINAPI SHUnlockShared(HANDLE pmem); HANDLE WINAPI SHFreeShared(HANDLE hmem, DWORD procID); /**************************************************************************** * Class constructors */ #ifdef __WINE__ extern LPDATAOBJECT IDataObject_Constructor(HWND hwndOwner, LPSHELLFOLDER psf, LPITEMIDLIST * apidl, UINT cidl); extern LPENUMFORMATETC IEnumFORMATETC_Constructor(UINT, const FORMATETC []); extern LPCLASSFACTORY IShellLink_CF_Constructor(void); extern LPCLASSFACTORY IShellLinkW_CF_Constructor(void); extern LPCLASSFACTORY IClassFactory_Constructor(void); extern LPCONTEXTMENU IContextMenu_Constructor(LPSHELLFOLDER, LPCITEMIDLIST *, UINT); extern LPSHELLFOLDER IShellFolder_Constructor(LPSHELLFOLDER,LPITEMIDLIST); extern LPSHELLVIEW IShellView_Constructor(LPSHELLFOLDER, LPCITEMIDLIST); extern LPSHELLLINK IShellLink_Constructor(void); extern LPSHELLLINKW IShellLinkW_Constructor(void); extern LPENUMIDLIST IEnumIDList_Constructor(LPCSTR,DWORD); extern LPEXTRACTICON IExtractIcon_Constructor(LPITEMIDLIST); #endif #endif