user/tests: Write-strings warnings fix.
[wine/multimedia.git] / include / shtypes.idl
blobeb4cb57b9442f4d3acfb145665fbf972425188ef
1 /*
2 * Type definitions for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
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.
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.
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
22 import "wtypes.idl";
24 cpp_quote("#include <pshpack1.h>")
25 typedef struct
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;
32 typedef struct _ITEMIDLIST
34 SHITEMID mkid; /* first itemid in list */
35 } ITEMIDLIST,*LPITEMIDLIST;
36 typedef const ITEMIDLIST *LPCITEMIDLIST;
37 cpp_quote("#include <poppack.h>")
39 #ifndef MAX_PATH
40 #define MAX_PATH 260
41 #endif
43 cpp_quote("#if 0")
44 typedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
45 cpp_quote("#endif")
47 typedef enum tagSTRRET_TYPE
49 STRRET_WSTR = 0,
50 STRRET_OFFSET = 1,
51 STRRET_CSTR = 2
52 } STRRET_TYPE;
54 cpp_quote("#include <pshpack4.h>")
55 typedef struct _STRRET
57 UINT uType; /* STRRET_xxx */
58 [switch_type(UINT), switch_is(uType)] union
60 [case(STRRET_WSTR)][string] LPWSTR pOleStr; /* OLESTR that will be freed */
61 [case(STRRET_OFFSET)] UINT uOffset; /* Offset into SHITEMID (ANSI) */
62 [case(STRRET_CSTR)] char cStr[MAX_PATH]; /* ANSI Buffer */
63 } DUMMYUNIONNAME;
64 } STRRET, *LPSTRRET;
65 cpp_quote("#include <poppack.h>")
67 cpp_quote("#include <pshpack1.h>")
68 typedef struct
70 int fmt;
71 int cxChar;
72 STRRET str;
73 } SHELLDETAILS, *LPSHELLDETAILS;
74 cpp_quote("#include <poppack.h>")