ReactOS 0.4.17-dev-934-g091855f
dmloader_private.h
Go to the documentation of this file.
1/* DirectMusicLoader Private Include
2 *
3 * Copyright (C) 2003-2004 Rok Mandeljc
4 *
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.
9 *
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.
14 *
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
18 */
19
20#ifndef __WINE_DMLOADER_PRIVATE_H
21#define __WINE_DMLOADER_PRIVATE_H
22
23#include <stdio.h>
24#include <stdarg.h>
25#include <string.h>
26
27#define COBJMACROS
28
29#include "windef.h"
30#include "winbase.h"
31#include "winnt.h"
32#include "wingdi.h"
33#include "winuser.h"
34
35#include "wine/debug.h"
36#include "wine/list.h"
37#include "winreg.h"
38#include "objbase.h"
39
40#include "dmusici.h"
41#include "dmusicf.h"
42#include "dmusics.h"
43#include "dmobject.h"
44
45#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
46
47/*****************************************************************************
48 * Interfaces
49 */
52
56
57/*****************************************************************************
58 * Creation helpers
59 */
60extern HRESULT create_dmloader(REFIID riid, void **ret_iface);
61extern HRESULT create_dmcontainer(REFIID riid, void **ret_iface);
63
64/*****************************************************************************
65 * IDirectMusicLoaderResourceStream implementation structure
66 */
68 /* IUnknown fields */
69 const IStreamVtbl *StreamVtbl;
70 /* reference counter */
72 /* data */
75 /* current position */
77};
78
79/* Custom: */
81 LONGLONG llMemLength, LONGLONG llPos);
82
83extern HRESULT loader_stream_create(IDirectMusicLoader *loader, IStream *stream, IStream **ret_iface);
84extern HRESULT file_stream_create(const WCHAR *path, IStream **ret_iface);
85
86#include "debug.h"
87
88#endif /* __WINE_DMLOADER_PRIVATE_H */
HRESULT DMUSIC_CreateDirectMusicLoaderResourceStream(void **ppobj)
Definition: loaderstream.c:661
struct IDirectMusicContainerCF IDirectMusicContainerCF
HRESULT create_dmloader(REFIID riid, void **ret_iface)
Definition: loader.c:910
struct IDirectMusicLoaderGenericStream IDirectMusicLoaderGenericStream
HRESULT file_stream_create(const WCHAR *path, IStream **ret_iface)
Definition: loaderstream.c:435
HRESULT loader_stream_create(IDirectMusicLoader *loader, IStream *stream, IStream **ret_iface)
Definition: loaderstream.c:240
HRESULT WINAPI IDirectMusicLoaderResourceStream_Attach(LPSTREAM iface, LPBYTE pbMemData, LONGLONG llMemLength, LONGLONG llPos)
Definition: loaderstream.c:472
HRESULT create_dmcontainer(REFIID riid, void **ret_iface)
Definition: container.c:649
struct IDirectMusicLoaderCF IDirectMusicLoaderCF
struct IDirectMusicLoaderFileStream IDirectMusicLoaderFileStream
REFIID riid
Definition: atlbase.h:39
interface IStream * LPSTREAM
Definition: objfwd.h:10
short WCHAR
Definition: pedump.c:58
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
Definition: loader.c:72
Definition: parse.h:23
unsigned char * LPBYTE
Definition: typedefs.h:53
int64_t LONGLONG
Definition: typedefs.h:68
#define WINAPI
Definition: msvc.h:6