//************************************************************************
//**
//**  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//**  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
//**  TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR
//**  A PARTICULAR PURPOSE.
//**
//**  Copyright (C) 1993, 1994 Microsoft Corporation. All Rights Reserved.
//**
//**  globals.h
//**
//**  DESCRIPTION:
//**
//**
//**  HISTORY:
//**     04/22/93       created.
//**
//************************************************************************


#ifndef __GLOBALS_H
#define __GLOBALS_H

#define  STRICT
#include "preclude.h"
#include <windows.h>
#include <windowsx.h>
#include <mmsystem.h>
#include <commdlg.h>

#define  MAX_TITLE_LEN  14
#define  MAX_STR_LEN    144
#define  MAX_FILE_BUF   1024
#define  FOURCC_MThd    mmioFOURCC('M', 'T', 'h', 'd')
#define  FOURCC_MTrk    mmioFOURCC('M', 'T', 'r', 'k')
#define  FOURCC_RMID    mmioFOURCC('R', 'M', 'I', 'D')
#define  FOURCC_MMAP    mmioFOURCC('M', 'M', 'A', 'P')
#define  FOURCC_DATA    mmioFOURCC('d', 'a', 't', 'a')


//
// NEW TYPEDEFINES
//

typedef struct tag_FILES
{
   char  pszMidiTitle[MAX_TITLE_LEN];
   char  pszMidiFile[MAX_STR_LEN];
   char  pszMifFile[MAX_STR_LEN];
} FILES, FAR *LPFILES;

//
// EXTERNAL FUNCTION PROTOTYPES
//

extern LRESULT  CALLBACK __export MainProc(HWND hwnd, UINT umsg, 
                                           WPARAM wParam, LPARAM lParam);


//
// GLOBAL VARIABLE DECLARATIONS
//
extern   char           gszClassName[];
extern   char           gszTitleBar[];
extern   HINSTANCE      ghinst;
extern   HWND           ghwndMain;
extern   HWND           ghwndListbox;
extern   HFONT          ghfont;
extern   LPFILES        gpFiles;
extern   UINT           guNumFiles;
extern   int            giFontHeight;
extern   char           gszHeaderBar[2][11];

#endif __GLOBALS_H
