/*1* Copyright 2002 Michael Günnewig2*3* This library is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* This library is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with this library; if not, write to the Free Software15* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA16*/1718#ifndef __WINE_EXTRACHUNK_H19#define __WINE_EXTRACHUNK_H2021#include <stdarg.h>2223#include "windef.h"24#include "winbase.h"25#include "mmsystem.h"2627#ifdef __cplusplus28extern "C" {29#endif3031typedef struct _EXTRACHUNKS {32LPVOID lp;33DWORD cb;34} EXTRACHUNKS, *LPEXTRACHUNKS;3536/* reads a chunk outof the extrachunk-structure */37HRESULT ReadExtraChunk(const EXTRACHUNKS *extra,FOURCC ckid,LPVOID lp,LPLONG size);3839/* writes a chunk into the extrachunk-structure */40HRESULT WriteExtraChunk(LPEXTRACHUNKS extra,FOURCC ckid,LPCVOID lp,LONG size);4142/* reads a chunk from the HMMIO into the extrachunk-structure */43HRESULT ReadChunkIntoExtra(LPEXTRACHUNKS extra,HMMIO hmmio,const MMCKINFO *lpck);4445/* reads all non-junk chunks into the extrachunk-structure until it finds46* the given chunk or the optional parent-chunk is at the end */47HRESULT FindChunkAndKeepExtras(LPEXTRACHUNKS extra,HMMIO hmmio,48MMCKINFO *lpck,MMCKINFO *lpckParent,UINT flags);4950#ifdef __cplusplus51}52#endif5354#endif555657