wordpad: Update Korean resource.
[wine] / include / shtypes.idl
1 /*
2  * Type definitions for shell objects
3  *
4  * Copyright (C) 1999 Juergen Schmied
5  * Copyright (C) 2003 Alexandre Julliard
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21
22 import "wtypes.idl";
23
24 cpp_quote("#include <pshpack1.h>")
25 typedef struct
26 {
27     WORD cb;      /* nr of bytes in this item */
28     BYTE abID[1]; /* first byte in this item */
29 } SHITEMID, *LPSHITEMID;
30 typedef const SHITEMID *LPCSHITEMID;
31
32 typedef struct _ITEMIDLIST
33 {
34     SHITEMID mkid; /* first itemid in list */
35 } ITEMIDLIST,*LPITEMIDLIST;
36 typedef const ITEMIDLIST *LPCITEMIDLIST;
37 typedef LPITEMIDLIST PITEMID_CHILD;
38 typedef const PITEMID_CHILD PCITEMID_CHILD;
39 typedef LPCITEMIDLIST PCUITEMID_CHILD;
40 typedef LPCITEMIDLIST *PCUITEMID_CHILD_ARRAY;
41 typedef LPCITEMIDLIST PCUIDLIST_RELATIVE;
42 typedef LPCITEMIDLIST PCIDLIST_ABSOLUTE;
43 cpp_quote("#include <poppack.h>")
44
45 #ifndef MAX_PATH
46 #define MAX_PATH 260
47 #endif
48
49 cpp_quote("#if 0")
50 typedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
51 cpp_quote("#endif")
52
53 typedef enum tagSTRRET_TYPE
54 {
55     STRRET_WSTR = 0,
56     STRRET_OFFSET = 1,
57     STRRET_CSTR = 2
58 } STRRET_TYPE;
59
60 cpp_quote("#include <pshpack8.h>")
61 typedef struct _STRRET
62 {
63     UINT uType;                 /* STRRET_xxx */
64     [switch_type(UINT), switch_is(uType)] union
65     {
66     [case(STRRET_WSTR)][string] LPWSTR    pOleStr;        /* OLESTR that will be freed */
67     [case(STRRET_OFFSET)]       UINT      uOffset;        /* Offset into SHITEMID (ANSI) */
68     [case(STRRET_CSTR)]         char      cStr[MAX_PATH]; /* ANSI Buffer */
69     } DUMMYUNIONNAME;
70 } STRRET, *LPSTRRET;
71 cpp_quote("#include <poppack.h>")
72
73 cpp_quote("#include <pshpack1.h>")
74 typedef struct
75 {
76     int fmt;
77     int cxChar;
78     STRRET str;
79 } SHELLDETAILS, *LPSHELLDETAILS;
80 cpp_quote("#include <poppack.h>")
81
82 typedef [v1_enum] enum tagSHCOLSTATE
83 {
84     SHCOLSTATE_DEFAULT = 0,
85     SHCOLSTATE_TYPE_STR,
86     SHCOLSTATE_TYPE_INT,
87     SHCOLSTATE_TYPE_DATE,
88     SHCOLSTATE_TYPEMASK = 0xf,
89     SHCOLSTATE_ONBYDEFAULT = 0x10,
90     SHCOLSTATE_SLOW = 0x20,
91     SHCOLSTATE_EXTENDED = 0x40,
92     SHCOLSTATE_SECONDARYUI = 0x80,
93     SHCOLSTATE_HIDDEN = 0x100,
94     SHCOLSTATE_PREFER_VARCMP = 0x200,
95     SHCOLSTATE_PREFER_FMTCMP = 0x400,
96     SHCOLSTATE_NOSORTBYFOLDERNESS = 0x800,
97     SHCOLSTATE_VIEWONLY = 0x10000,
98     SHCOLSTATE_BATCHREAD = 0x20000,
99     SHCOLSTATE_NO_GROUPBY = 0x40000,
100     SHCOLSTATE_FIXED_WIDTH = 0x1000,
101     SHCOLSTATE_NODPISCALE = 0x2000,
102     SHCOLSTATE_FIXED_RATIO = 0x4000,
103     SHCOLSTATE_DISPLAYMASK = 0xf000
104 } SHCOLSTATE;
105
106 typedef DWORD SHCOLSTATEF;