| 1 | /* $Id: shell.h,v 1.4 2000-08-18 02:04:05 phaller Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Shell Library definitions
|
|---|
| 5 | */
|
|---|
| 6 | #ifndef __WINE_SHELL_H
|
|---|
| 7 | #define __WINE_SHELL_H
|
|---|
| 8 |
|
|---|
| 9 | #include "windef.h"
|
|---|
| 10 |
|
|---|
| 11 | #ifdef __cplusplus
|
|---|
| 12 | extern "C" {
|
|---|
| 13 | #endif /* defined(__cplusplus) */
|
|---|
| 14 |
|
|---|
| 15 | /****************************************************************************
|
|---|
| 16 | * shell 16
|
|---|
| 17 | */
|
|---|
| 18 | extern void SHELL_LoadRegistry(void);
|
|---|
| 19 | extern void SHELL_SaveRegistry(void);
|
|---|
| 20 | extern void SHELL_Init(void);
|
|---|
| 21 |
|
|---|
| 22 | /* global functions used from shell32 */
|
|---|
| 23 | extern HINSTANCE SHELL_FindExecutable(LPCSTR,LPCSTR ,LPSTR);
|
|---|
| 24 | extern HGLOBAL WINAPI InternalExtractIcon(HINSTANCE,LPCSTR,UINT,WORD);
|
|---|
| 25 |
|
|---|
| 26 | /****************************************************************************
|
|---|
| 27 | * shell 32
|
|---|
| 28 | */
|
|---|
| 29 | /****************************************************************************
|
|---|
| 30 | * common return codes
|
|---|
| 31 | */
|
|---|
| 32 | #define SHELL_ERROR_SUCCESS 0L
|
|---|
| 33 | #define SHELL_ERROR_BADDB 1L
|
|---|
| 34 | #define SHELL_ERROR_BADKEY 2L
|
|---|
| 35 | #define SHELL_ERROR_CANTOPEN 3L
|
|---|
| 36 | #define SHELL_ERROR_CANTREAD 4L
|
|---|
| 37 | #define SHELL_ERROR_CANTWRITE 5L
|
|---|
| 38 | #define SHELL_ERROR_OUTOFMEMORY 6L
|
|---|
| 39 | #define SHELL_ERROR_INVALID_PARAMETER 7L
|
|---|
| 40 | #define SHELL_ERROR_ACCESS_DENIED 8L
|
|---|
| 41 |
|
|---|
| 42 | /****************************************************************************
|
|---|
| 43 | * common shell file structures
|
|---|
| 44 | */
|
|---|
| 45 | /******************************
|
|---|
| 46 | * DRAG&DROP API
|
|---|
| 47 | */
|
|---|
| 48 | typedef struct { /* structure for dropped files */
|
|---|
| 49 | WORD wSize;
|
|---|
| 50 | POINT16 ptMousePos;
|
|---|
| 51 | BOOL16 fInNonClientArea;
|
|---|
| 52 | /* memory block with filenames follows */
|
|---|
| 53 | } DROPFILESTRUCT16, *LPDROPFILESTRUCT16;
|
|---|
| 54 |
|
|---|
| 55 | typedef struct { /* structure for dropped files */
|
|---|
| 56 | DWORD lSize;
|
|---|
| 57 | POINT ptMousePos;
|
|---|
| 58 | BOOL fInNonClientArea;
|
|---|
| 59 | BOOL fWideChar;
|
|---|
| 60 | /* memory block with filenames follows */
|
|---|
| 61 | } DROPFILESTRUCT, *LPDROPFILESTRUCT;
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | /****************************************************************************
|
|---|
| 65 | * SHITEMID, ITEMIDLIST, PIDL API
|
|---|
| 66 | */
|
|---|
| 67 | #include "pshpack1.h"
|
|---|
| 68 | typedef struct
|
|---|
| 69 | { WORD cb; /* nr of bytes in this item */
|
|---|
| 70 | BYTE abID[1];/* first byte in this item */
|
|---|
| 71 | } SHITEMID,*LPSHITEMID;
|
|---|
| 72 | typedef LPSHITEMID const LPCSHITEMID;
|
|---|
| 73 |
|
|---|
| 74 | typedef struct
|
|---|
| 75 | { SHITEMID mkid; /* first itemid in list */
|
|---|
| 76 | } ITEMIDLIST,*LPITEMIDLIST,*LPCITEMIDLIST;
|
|---|
| 77 | #include "poppack.h"
|
|---|
| 78 |
|
|---|
| 79 | DWORD WINAPI SHGetPathFromIDListA (LPCITEMIDLIST pidl,LPSTR pszPath);
|
|---|
| 80 | DWORD WINAPI SHGetPathFromIDListW (LPCITEMIDLIST pidl,LPWSTR pszPath);
|
|---|
| 81 | #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
|
|---|
| 82 |
|
|---|
| 83 | /****************************************************************************
|
|---|
| 84 | * SHAddToRecentDocs API
|
|---|
| 85 | */
|
|---|
| 86 | #define SHARD_PIDL 0x00000001L
|
|---|
| 87 | #define SHARD_PATH 0x00000002L
|
|---|
| 88 |
|
|---|
| 89 | DWORD WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
|
|---|
| 90 |
|
|---|
| 91 | /****************************************************************************
|
|---|
| 92 | * other functions
|
|---|
| 93 | */
|
|---|
| 94 |
|
|---|
| 95 | #ifdef __cplusplus
|
|---|
| 96 | } /* extern "C" */
|
|---|
| 97 | #endif /* defined(__cplusplus) */
|
|---|
| 98 |
|
|---|
| 99 | #endif /* __WINE_SHELL_H */
|
|---|