wshom.ocx: Implement IWshShortcut_put_WorkingDirectory().
[wine.git] / include / d3dx9xof.h
blob123f0ac5853db30ff44006af95dca646f588176a
1 /*
2 * Copyright 2011 Dylan Smith
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_D3DX9XOF_H
20 #define __WINE_D3DX9XOF_H
22 #include "d3dx9.h"
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 typedef DWORD D3DXF_FILEFORMAT;
29 #define D3DXF_FILEFORMAT_BINARY 0
30 #define D3DXF_FILEFORMAT_TEXT 1
31 #define D3DXF_FILEFORMAT_COMPRESSED 2
33 typedef DWORD D3DXF_FILESAVEOPTIONS;
34 #define D3DXF_FILESAVE_TOFILE 0x00
35 #define D3DXF_FILESAVE_TOWFILE 0x01
37 typedef DWORD D3DXF_FILELOADOPTIONS;
38 #define D3DXF_FILELOAD_FROMFILE 0x00
39 #define D3DXF_FILELOAD_FROMWFILE 0x01
40 #define D3DXF_FILELOAD_FROMRESOURCE 0x02
41 #define D3DXF_FILELOAD_FROMMEMORY 0x03
43 typedef struct _D3DXF_FILELOADRESOURCE {
44 HMODULE hModule;
45 LPCSTR lpName;
46 LPCSTR lpType;
47 } D3DXF_FILELOADRESOURCE;
49 typedef struct _D3DXF_FILELOADMEMORY {
50 LPVOID lpMemory;
51 SIZE_T dSize;
52 } D3DXF_FILELOADMEMORY;
55 #ifndef _NO_COM
56 DEFINE_GUID(IID_ID3DXFile, 0xcef08cf9, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01);
57 DEFINE_GUID(IID_ID3DXFileSaveObject, 0xcef08cfa, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01);
58 DEFINE_GUID(IID_ID3DXFileSaveData, 0xcef08cfb, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01);
59 DEFINE_GUID(IID_ID3DXFileEnumObject, 0xcef08cfc, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01);
60 DEFINE_GUID(IID_ID3DXFileData, 0xcef08cfd, 0x7b4f, 0x4429, 0x96, 0x24, 0x2a, 0x69, 0x0a, 0x93, 0x32, 0x01);
61 #endif /* _NO_COM */
63 typedef interface ID3DXFile *LPD3DXFILE, *LPLPD3DXFILE;
64 typedef interface ID3DXFileSaveObject *LPD3DXFILESAVEOBJECT, **LPLPD3DXFILESAVEOBJECT;
65 typedef interface ID3DXFileSaveData *LPD3DXFILESAVEDATA, **LPLPD3DXFILESAVEDATA;
66 typedef interface ID3DXFileEnumObject *LPD3DXFILEENUMOBJECT, **LPLPD3DXFILEENUMOBJECT;
67 typedef interface ID3DXFileData *LPD3DXFILEDATA, **LPLPD3DXFILEDATA;
69 STDAPI D3DXFileCreate(LPD3DXFILE*);
71 #define INTERFACE ID3DXFile
72 DECLARE_INTERFACE_IID_(ID3DXFile,IUnknown,"cef08cf9-7b4f-4429-9624-2a690a933201")
74 /*** IUnknown methods ***/
75 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID, LPVOID*) PURE;
76 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
77 STDMETHOD_(ULONG,Release)(THIS) PURE;
78 /*** ID3DXFile methods ***/
79 STDMETHOD(CreateEnumObject)(THIS_ LPCVOID, D3DXF_FILELOADOPTIONS, LPD3DXFILEENUMOBJECT*) PURE;
80 STDMETHOD(CreateSaveObject)(THIS_ LPCVOID, D3DXF_FILESAVEOPTIONS, D3DXF_FILEFORMAT, LPD3DXFILESAVEOBJECT*) PURE;
81 STDMETHOD(RegisterTemplates)(THIS_ LPCVOID, SIZE_T) PURE;
82 STDMETHOD(RegisterEnumTemplates)(THIS_ LPD3DXFILEENUMOBJECT) PURE;
84 #undef INTERFACE
86 #define INTERFACE ID3DXFileSaveObject
87 DECLARE_INTERFACE_IID_(ID3DXFileSaveObject,IUnknown,"cef08cfa-7b4f-4429-9624-2a690a933201")
89 /*** IUnknown methods ***/
90 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID, LPVOID*) PURE;
91 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
92 STDMETHOD_(ULONG,Release)(THIS) PURE;
93 /*** ID3DXFileSaveObject methods ***/
94 STDMETHOD(GetFile)(THIS_ LPD3DXFILE*) PURE;
95 STDMETHOD(AddDataObject)(THIS_ REFGUID, LPCSTR, CONST GUID*, SIZE_T, LPCVOID, LPD3DXFILESAVEDATA*) PURE;
96 STDMETHOD(Save)(THIS) PURE;
98 #undef INTERFACE
100 #define INTERFACE ID3DXFileSaveData
101 DECLARE_INTERFACE_IID_(ID3DXFileSaveData,IUnknown,"cef08cfb-7b4f-4429-9624-2a690a933201")
103 /*** IUnknown methods ***/
104 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID, LPVOID*) PURE;
105 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
106 STDMETHOD_(ULONG,Release)(THIS) PURE;
107 /*** ID3DXFileSaveObject methods ***/
108 STDMETHOD(GetSave)(THIS_ LPD3DXFILESAVEOBJECT*) PURE;
109 STDMETHOD(GetName)(THIS_ LPSTR, SIZE_T*) PURE;
110 STDMETHOD(GetId)(THIS_ LPGUID) PURE;
111 STDMETHOD(GetType)(THIS_ GUID*) PURE;
112 STDMETHOD(AddDataObject)(THIS_ REFGUID, LPCSTR, CONST GUID*, SIZE_T, LPCVOID, LPD3DXFILESAVEDATA*) PURE;
113 STDMETHOD(AddDataReference)(THIS_ LPCSTR, CONST GUID*) PURE;
115 #undef INTERFACE
118 #define INTERFACE ID3DXFileEnumObject
119 DECLARE_INTERFACE_IID_(ID3DXFileEnumObject,IUnknown,"cef08cfc-7b4f-4429-9624-2a690a933201")
121 /*** IUnknown methods ***/
122 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID, LPVOID*) PURE;
123 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
124 STDMETHOD_(ULONG,Release)(THIS) PURE;
125 /*** ID3DXFileEnumObject methods ***/
126 STDMETHOD(GetFile)(THIS_ LPD3DXFILE*) PURE;
127 STDMETHOD(GetChildren)(THIS_ SIZE_T*) PURE;
128 STDMETHOD(GetChild)(THIS_ SIZE_T, LPD3DXFILEDATA*) PURE;
129 STDMETHOD(GetDataObjectById)(THIS_ REFGUID, LPD3DXFILEDATA*) PURE;
130 STDMETHOD(GetDataObjectByName)(THIS_ LPCSTR, LPD3DXFILEDATA*) PURE;
132 #undef INTERFACE
134 #define INTERFACE ID3DXFileData
135 DECLARE_INTERFACE_IID_(ID3DXFileData,IUnknown,"cef08cfd-7b4f-4429-9624-2a690a933201")
137 /*** IUnknown methods ***/
138 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID, LPVOID*) PURE;
139 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
140 STDMETHOD_(ULONG,Release)(THIS) PURE;
141 /*** ID3DXFileData methods ***/
142 STDMETHOD(GetEnum)(THIS_ LPD3DXFILEENUMOBJECT*) PURE;
143 STDMETHOD(GetName)(THIS_ LPSTR, SIZE_T*) PURE;
144 STDMETHOD(GetId)(THIS_ LPGUID) PURE;
145 STDMETHOD(Lock)(THIS_ SIZE_T*, LPCVOID*) PURE;
146 STDMETHOD(Unlock)(THIS) PURE;
147 STDMETHOD(GetType)(THIS_ GUID*) PURE;
148 STDMETHOD_(BOOL,IsReference)(THIS) PURE;
149 STDMETHOD(GetChildren)(THIS_ SIZE_T*) PURE;
150 STDMETHOD(GetChild)(THIS_ SIZE_T, LPD3DXFILEDATA*) PURE;
152 #undef INTERFACE
154 /* D3DX File errors */
155 #define _FACD3DXF 0x876
157 #define D3DXFERR_BADOBJECT MAKE_HRESULT(1,_FACD3DXF,900)
158 #define D3DXFERR_BADVALUE MAKE_HRESULT(1,_FACD3DXF,901)
159 #define D3DXFERR_BADTYPE MAKE_HRESULT(1,_FACD3DXF,902)
160 #define D3DXFERR_NOTFOUND MAKE_HRESULT(1,_FACD3DXF,903)
161 #define D3DXFERR_NOTDONEYET MAKE_HRESULT(1,_FACD3DXF,904)
162 #define D3DXFERR_FILENOTFOUND MAKE_HRESULT(1,_FACD3DXF,905)
163 #define D3DXFERR_RESOURCENOTFOUND MAKE_HRESULT(1,_FACD3DXF,906)
164 #define D3DXFERR_BADRESOURCE MAKE_HRESULT(1,_FACD3DXF,907)
165 #define D3DXFERR_BADFILETYPE MAKE_HRESULT(1,_FACD3DXF,908)
166 #define D3DXFERR_BADFILEVERSION MAKE_HRESULT(1,_FACD3DXF,909)
167 #define D3DXFERR_BADFILEFLOATSIZE MAKE_HRESULT(1,_FACD3DXF,910)
168 #define D3DXFERR_BADFILE MAKE_HRESULT(1,_FACD3DXF,911)
169 #define D3DXFERR_PARSEERROR MAKE_HRESULT(1,_FACD3DXF,912)
170 #define D3DXFERR_BADARRAYSIZE MAKE_HRESULT(1,_FACD3DXF,913)
171 #define D3DXFERR_BADDATAREFERENCE MAKE_HRESULT(1,_FACD3DXF,914)
172 #define D3DXFERR_NOMOREOBJECTS MAKE_HRESULT(1,_FACD3DXF,915)
173 #define D3DXFERR_NOMOREDATA MAKE_HRESULT(1,_FACD3DXF,916)
174 #define D3DXFERR_BADCACHEFILE MAKE_HRESULT(1,_FACD3DXF,917)
176 #ifdef __cplusplus
178 #endif
180 #endif /* __WINE_D3DX9XOF_H */