include/mscvpdb.h: Use flexible array members for the rest of structures.
[wine.git] / dlls / dmloader / dmloader_private.h
blobc590040389bd1cb6be55cc9106f4666c3e27d5d5
1 /* DirectMusicLoader Private Include
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_DMLOADER_PRIVATE_H
21 #define __WINE_DMLOADER_PRIVATE_H
23 #include <stdio.h>
24 #include <stdarg.h>
25 #include <string.h>
27 #define COBJMACROS
29 #include "windef.h"
30 #include "winbase.h"
31 #include "winnt.h"
32 #include "wingdi.h"
33 #include "winuser.h"
35 #include "wine/debug.h"
36 #include "wine/list.h"
37 #include "winreg.h"
38 #include "objbase.h"
40 #include "dmusici.h"
41 #include "dmusicf.h"
42 #include "dmusics.h"
43 #include "dmobject.h"
45 #define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
47 /*****************************************************************************
48 * Interfaces
50 typedef struct IDirectMusicLoaderCF IDirectMusicLoaderCF;
51 typedef struct IDirectMusicContainerCF IDirectMusicContainerCF;
53 typedef struct IDirectMusicLoaderFileStream IDirectMusicLoaderFileStream;
54 typedef struct IDirectMusicLoaderResourceStream IDirectMusicLoaderResourceStream;
55 typedef struct IDirectMusicLoaderGenericStream IDirectMusicLoaderGenericStream;
57 /*****************************************************************************
58 * Creation helpers
60 extern HRESULT create_dmloader(REFIID riid, void **ret_iface);
61 extern HRESULT create_dmcontainer(REFIID riid, void **ret_iface);
62 extern HRESULT DMUSIC_CreateDirectMusicLoaderResourceStream(void **ppobj);
64 /*****************************************************************************
65 * IDirectMusicLoaderResourceStream implementation structure
67 struct IDirectMusicLoaderResourceStream {
68 /* IUnknown fields */
69 const IStreamVtbl *StreamVtbl;
70 /* reference counter */
71 LONG dwRef;
72 /* data */
73 LPBYTE pbMemData;
74 LONGLONG llMemLength;
75 /* current position */
76 LONGLONG llPos;
79 /* Custom: */
80 extern HRESULT WINAPI IDirectMusicLoaderResourceStream_Attach(LPSTREAM iface, LPBYTE pbMemData,
81 LONGLONG llMemLength, LONGLONG llPos);
83 extern HRESULT loader_stream_create(IDirectMusicLoader *loader, IStream *stream, IStream **ret_iface);
84 extern HRESULT file_stream_create(const WCHAR *path, IStream **ret_iface);
86 #include "debug.h"
88 #endif /* __WINE_DMLOADER_PRIVATE_H */