2 * Shell Library definitions
11 #endif /* defined(__cplusplus) */
13 /****************************************************************************
16 extern void SHELL_LoadRegistry(void);
18 /* global functions used from shell32 */
19 extern HINSTANCE SHELL_FindExecutable(LPCSTR,LPCSTR ,LPSTR);
20 extern HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16,LPCSTR,UINT16,WORD);
22 /****************************************************************************
25 /****************************************************************************
28 #define SHELL_ERROR_SUCCESS 0L
29 #define SHELL_ERROR_BADDB 1L
30 #define SHELL_ERROR_BADKEY 2L
31 #define SHELL_ERROR_CANTOPEN 3L
32 #define SHELL_ERROR_CANTREAD 4L
33 #define SHELL_ERROR_CANTWRITE 5L
34 #define SHELL_ERROR_OUTOFMEMORY 6L
35 #define SHELL_ERROR_INVALID_PARAMETER 7L
36 #define SHELL_ERROR_ACCESS_DENIED 8L
38 /****************************************************************************
39 * common shell file structures
41 /******************************
44 typedef struct { /* structure for dropped files */
47 BOOL16 fInNonClientArea;
48 /* memory block with filenames follows */
49 } DROPFILESTRUCT16, *LPDROPFILESTRUCT16;
51 typedef struct { /* structure for dropped files */
54 BOOL fInNonClientArea;
56 /* memory block with filenames follows */
57 } DROPFILESTRUCT, *LPDROPFILESTRUCT;
60 /****************************************************************************
61 * SHITEMID, ITEMIDLIST, PIDL API
65 { WORD cb; /* nr of bytes in this item */
66 BYTE abID[1];/* first byte in this item */
67 } SHITEMID,*LPSHITEMID;
68 typedef LPSHITEMID const LPCSHITEMID;
71 { SHITEMID mkid; /* first itemid in list */
72 } ITEMIDLIST,*LPITEMIDLIST,*LPCITEMIDLIST;
75 BOOL WINAPI SHGetPathFromIDListA (LPCITEMIDLIST pidl,LPSTR pszPath);
76 BOOL WINAPI SHGetPathFromIDListW (LPCITEMIDLIST pidl,LPWSTR pszPath);
77 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
79 /****************************************************************************
80 * SHAddToRecentDocs API
82 #define SHARD_PIDL 0x00000001L
83 #define SHARD_PATH 0x00000002L
85 DWORD WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
87 /****************************************************************************
93 #endif /* defined(__cplusplus) */
95 #endif /* __WINE_SHELL_H */