home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
MMSYSTEM.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
15KB
|
664 lines
//----------------------------------------------------------------------------
// MMSystem.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: MMSystem.pas
//----------------------------------------------------------------------------
#ifndef MMSystemHPP
#define MMSystemHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#include <Mmsystem.h>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Mmsystem
{
//-- type declarations -------------------------------------------------------
typedef mmtime_tag *PMMTime;
typedef mmtime_tag TMMTime;
typedef DRVCONFIGINFOEX *PDrvConfigInfoEx;
#pragma pack(push, 1)
#pragma pack(pop)
typedef DRVCONFIGINFOEX TDrvConfigInfoEx;
typedef tagDRVCONFIGINFO *PDrvConfigInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagDRVCONFIGINFO TDrvConfigInfo;
typedef long __stdcall (*TFNDriverProc)(int dwDriverId, int hdrvr, int msg, long lparam1, long lparam2
);
typedef void __stdcall (*TFNDrvCallBack)(int hdrvr, int uMsg, int dwUser, int dw1, int dw2);
typedef int *PHWAVE;
typedef int *PHWAVEIN;
typedef int *PHWAVEOUT;
typedef void __stdcall (*TFNWaveCallBack)(int hdrvr, int uMsg, int dwUser, int dw1, int dw2);
typedef wavehdr_tag *PWaveHdr;
typedef wavehdr_tag TWaveHdr;
typedef tagWAVEOUTCAPSA *PWaveOutCapsA;
typedef tagWAVEOUTCAPSW *PWaveOutCapsW;
typedef tagWAVEOUTCAPSA *PWaveOutCaps;
typedef tagWAVEOUTCAPSA TWaveOutCapsA;
typedef tagWAVEOUTCAPSW TWaveOutCapsW;
typedef tagWAVEOUTCAPSA TWaveOutCaps;
typedef tagWAVEINCAPSA *PWaveInCapsA;
typedef tagWAVEINCAPSW *PWaveInCapsW;
typedef tagWAVEINCAPSA *PWaveInCaps;
typedef tagWAVEINCAPSA TWaveInCapsA;
typedef tagWAVEINCAPSW TWaveInCapsW;
typedef tagWAVEINCAPSA TWaveInCaps;
typedef waveformat_tag *PWaveFormat;
#pragma pack(push, 1)
#pragma pack(pop)
typedef waveformat_tag TWaveFormat;
typedef pcmwaveformat_tag *PPCMWaveFormat;
typedef pcmwaveformat_tag TPCMWaveFormat;
typedef tWAVEFORMATEX *PWaveFormatEx;
#pragma pack(push, 1)
typedef tWAVEFORMATEX TWaveFormatEx;
#pragma pack(pop)
typedef int *PHMIDI;
typedef int *PHMIDIIN;
typedef int *PHMIDIOUT;
typedef int *PHMIDISTRM;
typedef void __stdcall (*TFNMidiCallBack)(int hdrvr, int uMsg, int dwUser, int dw1, int dw2);
typedef Word TPatchArray[128];
typedef TPatchArray *PPatchArray;
typedef Word TKeyArray[128];
typedef TKeyArray *PKeyArray;
typedef tagMIDIOUTCAPSA *PMidiOutCapsA;
typedef tagMIDIOUTCAPSW *PMidiOutCapsW;
typedef tagMIDIOUTCAPSA *PMidiOutCaps;
typedef tagMIDIOUTCAPSA TMidiOutCapsA;
typedef tagMIDIOUTCAPSW TMidiOutCapsW;
typedef tagMIDIOUTCAPSA TMidiOutCaps;
typedef tagMIDIINCAPSA *PMidiInCapsA;
typedef tagMIDIINCAPSW *PMidiInCapsW;
typedef tagMIDIINCAPSA *PMidiInCaps;
typedef tagMIDIINCAPSA TMidiInCapsA;
typedef tagMIDIINCAPSW TMidiInCapsW;
typedef tagMIDIINCAPSA TMidiInCaps;
typedef midihdr_tag *PMidiHdr;
typedef midihdr_tag TMidiHdr;
typedef midievent_tag *PMidiEvent;
typedef midievent_tag TMidiEvent;
typedef midistrmbuffver_tag *PMidiStrmBuffVer;
typedef midistrmbuffver_tag TMidiStrmBuffVer;
typedef midiproptimediv_tag *PMidiPropTimeDiv;
typedef midiproptimediv_tag TMidiPropTimeDiv;
typedef midiproptempo_tag *PMidiPropTempo;
typedef midiproptempo_tag TMidiPropTempo;
typedef tagAUXCAPSA *PAuxCapsA;
typedef tagAUXCAPSW *PAuxCapsW;
typedef tagAUXCAPSA *PAuxCaps;
typedef tagAUXCAPSA TAuxCapsA;
typedef tagAUXCAPSW TAuxCapsW;
typedef tagAUXCAPSA TAuxCaps;
typedef int *PHMIXEROBJ;
typedef int *PHMIXER;
typedef tagMIXERCAPSA *PMixerCapsA;
typedef tagMIXERCAPSW *PMixerCapsW;
typedef tagMIXERCAPSA *PMixerCaps;
typedef tagMIXERCAPSA TMixerCapsA;
typedef tagMIXERCAPSW TMixerCapsW;
typedef tagMIXERCAPSA TMixerCaps;
typedef tagMIXERLINEA *PMixerLineA;
typedef tagMIXERLINEW *PMixerLineW;
typedef tagMIXERLINEA *PMixerLine;
struct MMSystem_1
{
int dwType;
int dwDeviceID;
Word wMid;
Word wPid;
int vDriverVersion;
char szPname[32];
} ;
typedef tagMIXERLINEA TMixerLineA;
struct MMSystem_2
{
int dwType;
int dwDeviceID;
Word wMid;
Word wPid;
int vDriverVersion;
wchar_t szPname[32];
} ;
typedef tagMIXERLINEW TMixerLineW;
typedef tagMIXERLINEA TMixerLine;
typedef tagMIXERCONTROLA *PMixerControlA;
typedef tagMIXERCONTROLW *PMixerControlW;
typedef tagMIXERCONTROLA *PMixerControl;
struct MMSystem_3
{
union
{
int dwReserved[6];
struct
{
int dwMinimum;
int dwMaximum;
};
struct
{
long lMinimum;
long lMaximum;
};
};
} ;
struct MMSystem_4
{
union
{
int dwReserved[6];
int cbCustomData;
int cSteps;
};
} ;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagMIXERCONTROLA TMixerControlA;
struct MMSystem_5
{
union
{
int dwReserved[6];
struct
{
int dwMinimum;
int dwMaximum;
};
struct
{
long lMinimum;
long lMaximum;
};
};
} ;
struct MMSystem_6
{
union
{
int dwReserved[6];
int cbCustomData;
int cSteps;
};
} ;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagMIXERCONTROLW TMixerControlW;
typedef tagMIXERCONTROLA TMixerControl;
typedef tagMIXERLINECONTROLSA *PMixerLineControlsA;
typedef tagMIXERLINECONTROLSW *PMixerLineControlsW;
typedef tagMIXERLINECONTROLSA *PMixerLineControls;
typedef tagMIXERLINECONTROLSA TMixerLineControlsA;
typedef tagMIXERLINECONTROLSW TMixerLineControlsW;
typedef tagMIXERLINECONTROLSA TMixerLineControls;
typedef tMIXERCONTROLDETAILS *PMixerControlDetails;
typedef tMIXERCONTROLDETAILS TMixerControlDetails;
typedef tagMIXERCONTROLDETAILS_LISTTEXTA *PMixerControlDetailsListTextA;
typedef tagMIXERCONTROLDETAILS_LISTTEXTW *PMixerControlDetailsListTextW;
typedef tagMIXERCONTROLDETAILS_LISTTEXTA *PMixerControlDetailsListText;
typedef tagMIXERCONTROLDETAILS_LISTTEXTA TMixerControlDetailsListTextA;
typedef tagMIXERCONTROLDETAILS_LISTTEXTW TMixerControlDetailsListTextW;
typedef tagMIXERCONTROLDETAILS_LISTTEXTA TMixerControlDetailsListText;
typedef tMIXERCONTROLDETAILS_BOOLEAN *PMixerControlDetailsBoolean;
typedef tMIXERCONTROLDETAILS_BOOLEAN TMixerControlDetailsBoolean;
typedef tMIXERCONTROLDETAILS_SIGNED *PMixerControlDetailsSigned;
typedef tMIXERCONTROLDETAILS_SIGNED TMixerControlDetailsSigned;
typedef tMIXERCONTROLDETAILS_UNSIGNED *PMixerControlDetailsUnsigned;
typedef tMIXERCONTROLDETAILS_UNSIGNED TMixerControlDetailsUnsigned;
typedef void __fastcall (*TFNTimeCallBack)(int uTimerID, int uMessage, int dwUser, int dw1, int dw2)
;
typedef timecaps_tag *PTimeCaps;
typedef timecaps_tag TTimeCaps;
typedef tagJOYCAPSA *PJoyCapsA;
typedef tagJOYCAPSW *PJoyCapsW;
typedef tagJOYCAPSA *PJoyCaps;
typedef tagJOYCAPSA TJoyCapsA;
typedef tagJOYCAPSW TJoyCapsW;
typedef tagJOYCAPSA TJoyCaps;
typedef joyinfo_tag *PJoyInfo;
typedef joyinfo_tag TJoyInfo;
typedef joyinfoex_tag *PJoyInfoEx;
typedef joyinfoex_tag TJoyInfoEx;
typedef int *PHMMIO;
typedef long __stdcall (*TFNMMIOProc)(char * lpmmioinfo, int uMessage, long lParam1, long lParam2);
typedef _MMIOINFO *PMMIOInfo;
typedef _MMIOINFO TMMIOInfo;
typedef _MMCKINFO *PMMCKInfo;
typedef _MMCKINFO TMMCKInfo;
typedef int __stdcall (*TFNYieldProc)(int mciId, int dwYieldData);
typedef tagMCI_GENERIC_PARMS *PMCI_Generic_Parms;
typedef tagMCI_GENERIC_PARMS TMCI_Generic_Parms;
typedef tagMCI_OPEN_PARMSA *PMCI_Open_ParmsA;
typedef tagMCI_OPEN_PARMSW *PMCI_Open_ParmsW;
typedef tagMCI_OPEN_PARMSA *PMCI_Open_Parms;
typedef tagMCI_OPEN_PARMSA TMCI_Open_ParmsA;
typedef tagMCI_OPEN_PARMSW TMCI_Open_ParmsW;
typedef tagMCI_OPEN_PARMSA TMCI_Open_Parms;
typedef tagMCI_PLAY_PARMS *PMCI_Play_Parms;
typedef tagMCI_PLAY_PARMS TMCI_Play_Parms;
typedef tagMCI_SEEK_PARMS *PMCI_Seek_Parms;
typedef tagMCI_SEEK_PARMS TMCI_Seek_Parms;
typedef tagMCI_STATUS_PARMS *PMCI_Status_Parms;
typedef tagMCI_STATUS_PARMS TMCI_Status_Parms;
typedef tagMCI_INFO_PARMSA *PMCI_Info_ParmsA;
typedef tagMCI_INFO_PARMSW *PMCI_Info_ParmsW;
typedef tagMCI_INFO_PARMSA *PMCI_Info_Parms;
typedef tagMCI_INFO_PARMSA TMCI_Info_ParmsA;
typedef tagMCI_INFO_PARMSW TMCI_Info_ParmsW;
typedef tagMCI_INFO_PARMSA TMCI_Info_Parms;
typedef tagMCI_GETDEVCAPS_PARMS *PMCI_GetDevCaps_Parms;
typedef tagMCI_GETDEVCAPS_PARMS TMCI_GetDevCaps_Parms;
typedef tagMCI_SYSINFO_PARMSA *PMCI_SysInfo_ParmsA;
typedef tagMCI_SYSINFO_PARMSW *PMCI_SysInfo_ParmsW;
typedef tagMCI_SYSINFO_PARMSA *PMCI_SysInfo_Parms;
typedef tagMCI_SYSINFO_PARMSA TMCI_SysInfo_ParmsA;
typedef tagMCI_SYSINFO_PARMSW TMCI_SysInfo_ParmsW;
typedef tagMCI_SYSINFO_PARMSA TMCI_SysInfo_Parms;
typedef tagMCI_SET_PARMS *PMCI_Set_Parms;
typedef tagMCI_SET_PARMS TMCI_Set_Parms;
typedef tagMCI_BREAK_PARMS *PMCI_Break_Parms;
typedef tagMCI_BREAK_PARMS TMCI_BReak_Parms;
struct TMCI_Sound_Parms;
typedef TMCI_Sound_Parms *PMCI_Sound_Parms;
struct TMCI_Sound_Parms
{
long dwCallback;
char *lpstrSoundName;
} ;
struct TMCI_SaveParmsA;
typedef TMCI_SaveParmsA *PMCI_Save_ParmsA;
struct TMCI_SaveParmsW;
typedef TMCI_SaveParmsW *PMCI_Save_ParmsW;
typedef TMCI_SaveParmsA *PMCI_Save_Parms;
struct TMCI_SaveParmsA
{
int dwCallback;
char *lpfilename;
} ;
struct TMCI_SaveParmsW
{
int dwCallback;
wchar_t *lpfilename;
} ;
typedef TMCI_SaveParmsA TMCI_SaveParms;
typedef tagMCI_LOAD_PARMSA *PMCI_Load_ParmsA;
typedef tagMCI_LOAD_PARMSW *PMCI_Load_ParmsW;
typedef tagMCI_LOAD_PARMSA *PMCI_Load_Parms;
typedef tagMCI_LOAD_PARMSA TMCI_Load_ParmsA;
typedef tagMCI_LOAD_PARMSW TMCI_Load_ParmsW;
typedef tagMCI_LOAD_PARMSA TMCI_Load_Parms;
typedef tagMCI_RECORD_PARMS *PMCI_Record_Parms;
typedef tagMCI_RECORD_PARMS TMCI_Record_Parms;
typedef tagMCI_VD_PLAY_PARMS *PMCI_VD_Play_Parms;
typedef tagMCI_VD_PLAY_PARMS TMCI_VD_Play_Parms;
typedef tagMCI_VD_STEP_PARMS *PMCI_VD_Step_Parms;
typedef tagMCI_VD_STEP_PARMS TMCI_VD_Step_Parms;
typedef tagMCI_VD_ESCAPE_PARMSA *PMCI_VD_Escape_ParmsA;
typedef tagMCI_VD_ESCAPE_PARMSW *PMCI_VD_Escape_ParmsW;
typedef tagMCI_VD_ESCAPE_PARMSA *PMCI_VD_Escape_Parms;
typedef tagMCI_VD_ESCAPE_PARMSA TMCI_VD_Escape_ParmsA;
typedef tagMCI_VD_ESCAPE_PARMSW TMCI_VD_Escape_ParmsW;
typedef tagMCI_VD_ESCAPE_PARMSA TMCI_VD_Escape_Parms;
typedef tagMCI_WAVE_OPEN_PARMSA *PMCI_Wave_Open_ParmsA;
typedef tagMCI_WAVE_OPEN_PARMSW *PMCI_Wave_Open_ParmsW;
typedef tagMCI_WAVE_OPEN_PARMSA *PMCI_Wave_Open_Parms;
typedef tagMCI_WAVE_OPEN_PARMSA TMCI_Wave_Open_ParmsA;
typedef tagMCI_WAVE_OPEN_PARMSW TMCI_Wave_Open_ParmsW;
typedef tagMCI_WAVE_OPEN_PARMSA TMCI_Wave_Open_Parms;
typedef tagMCI_WAVE_DELETE_PARMS *PMCI_Wave_Delete_Parms;
typedef tagMCI_WAVE_DELETE_PARMS TMCI_Wave_Delete_Parms;
typedef tagMCI_WAVE_SET_PARMS *PMCI_Wave_Set_Parms;
typedef tagMCI_WAVE_SET_PARMS TMCI_Wave_Set_Parms;
typedef tagMCI_SEQ_SET_PARMS *PMCI_Seq_Set_Parms;
typedef tagMCI_SEQ_SET_PARMS TMCI_Seq_Set_Parms;
typedef tagMCI_ANIM_OPEN_PARMSA *PMCI_Anim_Open_ParmsA;
typedef tagMCI_ANIM_OPEN_PARMSW *PMCI_Anim_Open_ParmsW;
typedef tagMCI_ANIM_OPEN_PARMSA *PMCI_Anim_Open_Parms;
typedef tagMCI_ANIM_OPEN_PARMSA TMCI_Anim_Open_ParmsA;
typedef tagMCI_ANIM_OPEN_PARMSW TMCI_Anim_Open_ParmsW;
typedef tagMCI_ANIM_OPEN_PARMSA TMCI_Anim_Open_Parms;
typedef tagMCI_ANIM_PLAY_PARMS *PMCI_Anim_Play_Parms;
typedef tagMCI_ANIM_PLAY_PARMS TMCI_Anim_Play_Parms;
typedef tagMCI_ANIM_STEP_PARMS *PMCI_Anim_Step_Parms;
typedef tagMCI_ANIM_STEP_PARMS TMCI_Anim_Step_Parms;
typedef tagMCI_ANIM_WINDOW_PARMSA *PMCI_Anim_Window_ParmsA;
typedef tagMCI_ANIM_WINDOW_PARMSW *PMCI_Anim_Window_ParmsW;
typedef tagMCI_ANIM_WINDOW_PARMSA *PMCI_Anim_Window_Parms;
typedef tagMCI_ANIM_WINDOW_PARMSA TMCI_Anim_Window_ParmsA;
typedef tagMCI_ANIM_WINDOW_PARMSW TMCI_Anim_Window_ParmsW;
typedef tagMCI_ANIM_WINDOW_PARMSA TMCI_Anim_Window_Parms;
typedef tagMCI_ANIM_RECT_PARMS *PMCI_Anim_Rect_Parms;
typedef tagMCI_ANIM_RECT_PARMS TMCI_Anim_Rect_Parms;
typedef tagMCI_ANIM_UPDATE_PARMS *PMCI_Anim_Update_Parms;
typedef tagMCI_ANIM_UPDATE_PARMS TMCI_Anim_Update_Parms;
typedef tagMCI_OVLY_OPEN_PARMSA *PMCI_Ovly_Open_ParmsA;
typedef tagMCI_OVLY_OPEN_PARMSW *PMCI_Ovly_Open_ParmsW;
typedef tagMCI_OVLY_OPEN_PARMSA *PMCI_Ovly_Open_Parms;
typedef tagMCI_OVLY_OPEN_PARMSA TMCI_Ovly_Open_ParmsA;
typedef tagMCI_OVLY_OPEN_PARMSW TMCI_Ovly_Open_ParmsW;
typedef tagMCI_OVLY_OPEN_PARMSA TMCI_Ovly_Open_Parms;
typedef tagMCI_OVLY_WINDOW_PARMSA *PMCI_Ovly_Window_ParmsA;
typedef tagMCI_OVLY_WINDOW_PARMSW *PMCI_Ovly_Window_ParmsW;
typedef tagMCI_OVLY_WINDOW_PARMSA *PMCI_Ovly_Window_Parms;
typedef tagMCI_OVLY_WINDOW_PARMSA TMCI_Ovly_Window_ParmsA;
typedef tagMCI_OVLY_WINDOW_PARMSW TMCI_Ovly_Window_ParmsW;
typedef tagMCI_OVLY_WINDOW_PARMSA TMCI_Ovly_Window_Parms;
typedef tagMCI_OVLY_RECT_PARMS *PMCI_Ovly_Rect_Parms;
typedef tagMCI_OVLY_RECT_PARMS TMCI_Ovly_Rect_Parms;
typedef tagMCI_OVLY_SAVE_PARMSA *PMCI_Ovly_Save_ParmsA;
typedef tagMCI_OVLY_SAVE_PARMSW *PMCI_Ovly_Save_ParmsW;
typedef tagMCI_OVLY_SAVE_PARMSA *PMCI_Ovly_Save_Parms;
typedef tagMCI_OVLY_SAVE_PARMSA TMCI_Ovly_Save_ParmsA;
typedef tagMCI_OVLY_SAVE_PARMSW TMCI_Ovly_Save_ParmsW;
typedef tagMCI_OVLY_SAVE_PARMSA TMCI_Ovly_Save_Parms;
typedef tagMCI_OVLY_LOAD_PARMSA *PMCI_Ovly_Load_ParmsA;
typedef tagMCI_OVLY_LOAD_PARMSW *PMCI_Ovly_Load_ParmsW;
typedef tagMCI_OVLY_LOAD_PARMSA *PMCI_Ovly_Load_Parms;
typedef tagMCI_OVLY_LOAD_PARMSA TMCI_Ovly_Load_ParmsA;
typedef tagMCI_OVLY_LOAD_PARMSW TMCI_Ovly_Load_ParmsW;
typedef tagMCI_OVLY_LOAD_PARMSA TMCI_Ovly_Load_Parms;
//-- var, const, procedure ---------------------------------------------------
#define MCI_GETDEVCAPs (Word)(2059)
#define MCI_SOUND (Word)(2066)
#define MCI_SOUND_NAME (Word)(256)
#define mmsyst "winmm.dll"
extern Byte __fastcall mci_MSF_Minute(long msf);
extern Byte __fastcall mci_MSF_Second(long msf);
extern Byte __fastcall mci_MSF_Frame(long msf);
extern long __fastcall mci_Make_MSF(Byte m, Byte s, Byte f);
extern Byte __fastcall mci_TMSF_Track(long tmsf);
extern Byte __fastcall mci_TMSF_Minute(long tmsf);
extern Byte __fastcall mci_TMSF_Second(long tmsf);
extern Byte __fastcall mci_TMSF_Frame(long tmsf);
extern long __fastcall mci_Make_TMSF(Byte t, Byte m, Byte s, Byte f);
extern Byte __fastcall mci_HMS_Hour(long hms);
extern Byte __fastcall mci_HMS_Minute(long hms);
extern Byte __fastcall mci_HMS_Second(long hms);
extern long __fastcall mci_Make_HMS(Byte h, Byte m, Byte s);
extern long __fastcall DIBIndex(int N);
} /* namespace Mmsystem */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Mmsystem;
#endif
//-- end unit ----------------------------------------------------------------
#endif // MMSystem