2 * Shell Library definitions
10 /****************************************************************************
13 extern void SHELL_LoadRegistry(void);
14 extern void SHELL_SaveRegistry(void);
15 extern void SHELL_Init(void);
17 /* global functions used from shell32 */
18 extern HINSTANCE
SHELL_FindExecutable(LPCSTR
,LPCSTR
,LPSTR
);
19 extern HGLOBAL16 WINAPI
InternalExtractIcon16(HINSTANCE16
,LPCSTR
,UINT16
,WORD
);
21 /****************************************************************************
24 /****************************************************************************
27 #define SHELL_ERROR_SUCCESS 0L
28 #define SHELL_ERROR_BADDB 1L
29 #define SHELL_ERROR_BADKEY 2L
30 #define SHELL_ERROR_CANTOPEN 3L
31 #define SHELL_ERROR_CANTREAD 4L
32 #define SHELL_ERROR_CANTWRITE 5L
33 #define SHELL_ERROR_OUTOFMEMORY 6L
34 #define SHELL_ERROR_INVALID_PARAMETER 7L
35 #define SHELL_ERROR_ACCESS_DENIED 8L
37 /****************************************************************************
38 * common shell file structures
40 /******************************
43 typedef struct { /* structure for dropped files */
46 BOOL16 fInNonClientArea
;
47 /* memory block with filenames follows */
48 } DROPFILESTRUCT16
, *LPDROPFILESTRUCT16
;
50 typedef struct { /* structure for dropped files */
53 BOOL fInNonClientArea
;
55 /* memory block with filenames follows */
56 } DROPFILESTRUCT
, *LPDROPFILESTRUCT
;
59 /****************************************************************************
60 * SHITEMID, ITEMIDLIST, PIDL API
64 { WORD cb
; /* nr of bytes in this item */
65 BYTE abID
[1];/* first byte in this item */
66 } SHITEMID
,*LPSHITEMID
;
69 { SHITEMID mkid
; /* first itemid in list */
70 } ITEMIDLIST
,*LPITEMIDLIST
,*LPCITEMIDLIST
;
73 DWORD WINAPI
SHGetPathFromIDListA (LPCITEMIDLIST pidl
,LPSTR pszPath
);
74 DWORD WINAPI
SHGetPathFromIDListW (LPCITEMIDLIST pidl
,LPWSTR pszPath
);
75 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
79 /****************************************************************************
80 * SHChangeNotifyRegister API
87 DWORD WINAPI
SHChangeNotifyRegister(HWND hwnd
,LONG events1
,LONG events2
,DWORD msg
,int count
,IDSTRUCT
*idlist
);
88 DWORD WINAPI
SHChangeNotifyDeregister(LONG x1
);
90 /****************************************************************************
91 * SHAddToRecentDocs API
93 #define SHARD_PIDL 0x00000001L
94 #define SHARD_PATH 0x00000002L
96 DWORD WINAPI
SHAddToRecentDocs(UINT uFlags
, LPCVOID pv
);
98 /****************************************************************************
99 * SHGetSpecialFolderLocation API
101 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND
, INT
, LPITEMIDLIST
*);
102 /****************************************************************************
103 * string and path functions
105 BOOL WINAPI
PathIsRootA(LPCSTR x
);
106 BOOL WINAPI
PathIsRootW(LPCWSTR x
);
107 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
108 BOOL WINAPI
PathIsRootAW(LPCVOID x
);
110 LPSTR WINAPI
PathAddBackslashA(LPSTR path
);
111 LPWSTR WINAPI
PathAddBackslashW(LPWSTR path
);
112 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
113 LPVOID WINAPI
PathAddBackslashAW(LPVOID path
);
115 BOOL WINAPI
PathQualifyA(LPCSTR path
);
116 BOOL WINAPI
PathQualifyW(LPCWSTR path
);
117 #define PathQualify WINELIB_NAME_AW(PathQualify)
118 BOOL WINAPI
PathQualifyAW(LPCVOID path
);
120 LPSTR WINAPI
PathQuoteSpacesA(LPCSTR path
);
121 LPWSTR WINAPI
PathQuoteSpacesW(LPCWSTR path
);
122 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
123 LPVOID WINAPI
PathQuoteSpacesAW(LPCVOID path
);
125 LPSTR WINAPI
PathCombineA(LPSTR szDest
, LPCSTR lpszDir
, LPCSTR lpszFile
);
126 LPWSTR WINAPI
PathCombineW(LPWSTR szDest
, LPCWSTR lpszDir
, LPCWSTR lpszFile
);
127 #define PathCombine WINELIB_NAME_AW(PathCombine)
128 LPVOID WINAPI
PathCombineAW(LPVOID szDest
, LPCVOID lpszDir
, LPCVOID lpszFile
);
130 LPCSTR WINAPI
PathFindExtensionA(LPCSTR path
);
131 LPCWSTR WINAPI
PathFindExtensionW(LPCWSTR path
);
132 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
133 LPCVOID WINAPI
PathFindExtensionAW(LPCVOID path
);
135 LPCSTR WINAPI
PathGetExtensionA(LPCSTR path
, DWORD y
, DWORD x
);
136 LPCWSTR WINAPI
PathGetExtensionW(LPCWSTR path
, DWORD y
, DWORD x
);
137 #define PathGetExtension WINELIB_NAME_AW(PathGetExtension)
138 LPCVOID WINAPI
PathGetExtensionAW(LPCVOID path
, DWORD y
, DWORD x
);
140 LPCSTR WINAPI
PathFindFilenameA(LPCSTR path
);
141 LPCWSTR WINAPI
PathFindFilenameW(LPCWSTR path
);
142 #define PathFindFilename WINELIB_NAME_AW(PathFindFilename)
143 LPCVOID WINAPI
PathFindFilenameAW(LPCVOID path
);
145 BOOL WINAPI
PathMatchSpecA(LPCSTR x
, LPCSTR y
);
146 BOOL WINAPI
PathMatchSpecW(LPCWSTR x
, LPCWSTR y
);
147 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
148 BOOL WINAPI
PathMatchSpecAW(LPVOID x
, LPVOID y
);
150 LPSTR WINAPI
PathRemoveBlanksA(LPSTR str
);
151 LPWSTR WINAPI
PathRemoveBlanksW(LPWSTR str
);
152 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
153 LPVOID WINAPI
PathRemoveBlanksAW(LPVOID str
);
155 BOOL WINAPI
PathIsRelativeA(LPCSTR str
);
156 BOOL WINAPI
PathIsRelativeW(LPCWSTR str
);
157 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
158 BOOL WINAPI
PathIsRelativeAW(LPCVOID str
);
160 BOOL WINAPI
PathIsUNCA(LPCSTR str
);
161 BOOL WINAPI
PathIsUNCW(LPCWSTR str
);
162 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
163 BOOL WINAPI
PathIsUNCAW(LPCVOID str
);
165 BOOL WINAPI
PathFindOnPathA(LPSTR sFile
, LPCSTR sOtherDirs
);
166 BOOL WINAPI
PathFindOnPathW(LPWSTR sFile
, LPCWSTR sOtherDirs
);
167 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
168 BOOL WINAPI
PathFindOnPathAW(LPVOID sFile
, LPCVOID sOtherDirs
);
170 LPSTR WINAPI
StrFormatByteSizeA ( DWORD dw
, LPSTR pszBuf
, UINT cchBuf
);
171 LPWSTR WINAPI
StrFormatByteSizeW ( DWORD dw
, LPWSTR pszBuf
, UINT cchBuf
);
172 #define StrFormatByteSize WINELIB_NAME_AW(StrFormatByteSize)
174 /****************************************************************************
178 LPVOID WINAPI
SHAlloc(DWORD len
);
179 DWORD WINAPI
SHFree(LPVOID x
);
181 #define CSIDL_DESKTOP 0x0000
182 #define CSIDL_PROGRAMS 0x0002
183 #define CSIDL_CONTROLS 0x0003
184 #define CSIDL_PRINTERS 0x0004
185 #define CSIDL_PERSONAL 0x0005
186 #define CSIDL_FAVORITES 0x0006
187 #define CSIDL_STARTUP 0x0007
188 #define CSIDL_RECENT 0x0008
189 #define CSIDL_SENDTO 0x0009
190 #define CSIDL_BITBUCKET 0x000a
191 #define CSIDL_STARTMENU 0x000b
192 #define CSIDL_DESKTOPDIRECTORY 0x0010
193 #define CSIDL_DRIVES 0x0011
194 #define CSIDL_NETWORK 0x0012
195 #define CSIDL_NETHOOD 0x0013
196 #define CSIDL_FONTS 0x0014
197 #define CSIDL_TEMPLATES 0x0015
198 #define CSIDL_COMMON_STARTMENU 0x0016
199 #define CSIDL_COMMON_PROGRAMS 0X0017
200 #define CSIDL_COMMON_STARTUP 0x0018
201 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
202 #define CSIDL_APPDATA 0x001a
203 #define CSIDL_PRINTHOOD 0x001b
204 #define CSIDL_ALTSTARTUP 0x001d
205 #define CSIDL_COMMON_ALTSTARTUP 0x001e
206 #define CSIDL_COMMON_FAVORITES 0x001f
207 #define CSIDL_INTERNET_CACHE 0x0020
208 #define CSIDL_COOKIES 0x0021
209 #define CSIDL_HISTORY 0x0022
211 #endif /* __WINE_SHELL_H */