#ifdef MEWEL
#include "window.h"
#undef  NULL
#define NULL         0
#define _CreateWindow(cl,nm,style,x,y,cx,cy,hP,hM,hI,lP) \
        CreateWindow(cl,nm,style,x,y,cx,cy,SYSTEM_COLOR,0,hP,hM,hI,lP)
#else
#include <windows.h>
#define MEMHANDLE     HANDLE
#define _DialogBox    DialogBox
#define _CreateWindow CreateWindow
#endif


/* file menu items */
#define IDM_EXIT     105
#define IDM_ABOUT    106

/* edit menu items */
#define IDM_TOINBOX     200
#define IDM_FROMINBOX   201

/* File-open dialog box controls */
#define ID_FILENAME  400
#define ID_EDIT      401
#define ID_FILES     402
#define ID_PATH      403
#define ID_LISTBOX   404
#define ID_DEST      405
#define ID_FIND      406
#define ID_HELP      407
#define ID_FOUNDFILES 408
#define ID_FINDPATH  409
#define ID_DRIVES    410
#define ID_FILETYPE  411

#define ID_ISSUE1    413
#define ID_ISSUE22   434
#define ID_LOCALC    436
#define ID_LOCALD    437
#define ID_LOCALE    438
#define ID_GRAPHICS  439
#define ID_LAYOUT    440
#define ID_EDITPROD  441
#define ID_CORPPROD  442

int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
BOOL FileMoveInit(HANDLE);
long FAR PASCAL FileMoveWndProc(HWND, unsigned, WORD, LONG);
BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);

/* FILEOPEN.C */
HANDLE FAR PASCAL OpenDlg(HWND, unsigned, WORD, LONG);
HANDLE FAR PASCAL OpenDlg2(HWND, unsigned, WORD, LONG);
void SeparateFile(HWND, LPSTR, LPSTR, LPSTR);
void UpdateListBox(HWND);
void ChangeDefExt(PSTR, PSTR);
BOOL PASCAL Whereis(PSTR szSearchSpec, HWND hDlg, WORD idListBox);
BOOL FAR PASCAL Directory(PSTR szFileSpec, WORD wAttributes, HWND hListBox, HWND hPath);
BOOL PASCAL CopyToInbox(HWND hWnd, PSTR pSrcFile, PSTR pDestFile);
BOOL PASCAL CopyFromInbox(HWND hWnd, PSTR pSrcFile, PSTR pDestFile);
void PASCAL MakeDestination(PSTR pOpenName, PSTR pRetName, WORD iDest);
DWORD PASCAL _Copy(HWND hWnd, PSTR pSrc, PSTR pDest);
void PASCAL WriteLogfile(PSTR pSrcFile, PSTR pDestFile, DWORD dwTotal);
void PASCAL CopyFoundFilesToInbox(HWND hDlg);

