2003-07-22 00:10:14 +02:00
|
|
|
/* DirectMusicStyle Private Include
|
|
|
|
*
|
2004-01-20 01:21:40 +01:00
|
|
|
* Copyright (C) 2003-2004 Rok Mandeljc
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-05-30 12:54:07 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-07-22 00:10:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DMSTYLE_PRIVATE_H
|
|
|
|
#define __WINE_DMSTYLE_PRIVATE_H
|
|
|
|
|
2004-02-25 02:30:03 +01:00
|
|
|
#include <stdio.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2004-02-25 02:30:03 +01:00
|
|
|
#include <string.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
|
2004-08-11 21:43:45 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winnt.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "wingdi.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
#include "winuser.h"
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "wine/list.h"
|
|
|
|
#include "winreg.h"
|
2004-08-22 23:38:46 +02:00
|
|
|
#include "objbase.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#include "dmusici.h"
|
|
|
|
#include "dmusicf.h"
|
2004-01-20 01:21:40 +01:00
|
|
|
#include "dmusics.h"
|
2003-07-22 00:10:14 +02:00
|
|
|
|
2003-08-23 01:53:27 +02:00
|
|
|
/*****************************************************************************
|
2004-01-20 01:21:40 +01:00
|
|
|
* ClassFactory
|
2003-08-23 01:53:27 +02:00
|
|
|
*/
|
2014-01-15 01:08:41 +01:00
|
|
|
extern HRESULT WINAPI create_dmstyle(REFIID lpcGUID, LPVOID* ppobj) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmauditiontrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmchordtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmcommandtrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmmotiftrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmmutetrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
|
|
|
extern HRESULT WINAPI create_dmstyletrack(REFIID riid, void **ret_iface) DECLSPEC_HIDDEN;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2004-05-14 23:36:15 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Auxiliary definitions
|
|
|
|
*/
|
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_BAND {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
IDirectMusicBand* pBand;
|
|
|
|
} DMUS_PRIVATE_STYLE_BAND, *LPDMUS_PRIVATE_STYLE_BAND;
|
|
|
|
|
2005-01-05 14:22:57 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_PARTREF_ITEM {
|
2004-05-14 23:36:15 +02:00
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DMUS_OBJECTDESC desc;
|
2005-01-05 14:22:57 +01:00
|
|
|
DMUS_IO_PARTREF part_ref;
|
|
|
|
} DMUS_PRIVATE_STYLE_PARTREF_ITEM, *LPDMUS_PRIVATE_STYLE_PARTREF_ITEM;
|
|
|
|
|
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_MOTIF {
|
|
|
|
struct list entry; /* for listing elements */
|
2006-11-07 00:38:49 +01:00
|
|
|
DWORD dwRhythm;
|
2004-05-14 23:36:15 +02:00
|
|
|
DMUS_IO_PATTERN pattern;
|
2005-01-05 14:22:57 +01:00
|
|
|
DMUS_OBJECTDESC desc;
|
|
|
|
/** optional for motifs */
|
2004-05-14 23:36:15 +02:00
|
|
|
DMUS_IO_MOTIFSETTINGS settings;
|
|
|
|
IDirectMusicBand* pBand;
|
2005-01-05 14:22:57 +01:00
|
|
|
|
|
|
|
struct list Items;
|
2004-05-14 23:36:15 +02:00
|
|
|
} DMUS_PRIVATE_STYLE_MOTIF, *LPDMUS_PRIVATE_STYLE_MOTIF;
|
|
|
|
|
2005-01-05 14:22:57 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_STYLE_ITEM {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DWORD dwTimeStamp;
|
|
|
|
IDirectMusicStyle8* pObject;
|
|
|
|
} DMUS_PRIVATE_STYLE_ITEM, *LPDMUS_PRIVATE_STYLE_ITEM;
|
|
|
|
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
typedef struct _DMUS_PRIVATE_COMMAND {
|
|
|
|
struct list entry; /* for listing elements */
|
|
|
|
DMUS_IO_COMMAND pCommand;
|
|
|
|
IDirectMusicCollection* ppReferenceCollection;
|
|
|
|
} DMUS_PRIVATE_COMMAND, *LPDMUS_PRIVATE_COMMAND;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2005-01-24 20:33:23 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for dmstyle.dll
|
|
|
|
*/
|
2011-05-13 16:59:26 +02:00
|
|
|
extern LONG DMSTYLE_refCount DECLSPEC_HIDDEN;
|
2005-06-20 16:18:03 +02:00
|
|
|
static inline void DMSTYLE_LockModule(void) { InterlockedIncrement( &DMSTYLE_refCount ); }
|
|
|
|
static inline void DMSTYLE_UnlockModule(void) { InterlockedDecrement( &DMSTYLE_refCount ); }
|
2003-08-23 01:53:27 +02:00
|
|
|
|
|
|
|
/*****************************************************************************
|
2004-01-20 01:21:40 +01:00
|
|
|
* Misc.
|
2003-08-23 01:53:27 +02:00
|
|
|
*/
|
2004-05-14 06:57:02 +02:00
|
|
|
#include "dmutils.h"
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2003-07-22 00:10:14 +02:00
|
|
|
#endif /* __WINE_DMSTYLE_PRIVATE_H */
|