home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
PMFLOPPY.ZIP
/
PMFLOPPY.H
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-23
|
1KB
|
47 lines
/* pmfloppy.h */
#define STACK_SIZE 6000
#define READ_SOURCE 1
#define COPY_TARGET 2
#define EXIT_DSKCPY -1
#define DSKCPY_ERROR_WRONG_FORMAT 0xffbf
#define BUFSIZE 1024
#define OPENFLAGS (OPEN_FLAGS_DASD | OPEN_SHARE_DENYREADWRITE | OPEN_ACCESS_READWRITE)
#define BSPBLK BIOSPARAMETERBLOCK
// Note, for the lockdrive/unlockdrive macros, the global variable _lockCmd
// must be accessable and set to zero!
#define lockdrive(hf) (DiskError = DosDevIOCtl(0L, &_lockCmd, DSK_LOCKDRIVE, IOCTL_DISK, hf))
#define unlockdrive(hf) (DiskError = DosDevIOCtl(0L, &_lockCmd, DSK_UNLOCKDRIVE, IOCTL_DISK, hf))
// Resource IDs
#define IDR_PMFLOPPY 1
// Menu IDs
#define IDM_DISK_MENU 2050
#define IDM_FORMAT 2051
#define IDM_READ 2052
#define IDM_WRITE 2053
#define IDM_ABOUT 2054
#define IDM_EXIT 2060
// Dialog IDs
#include "copydlgs.h"
// Local messages
#define UM_READERROR WM_USER + 0
#define UM_READSTATUS WM_USER + 1
#define UM_READMSG WM_USER + 2
#define UM_WRITEERROR WM_USER + 3
#define UM_WRITESTATUS WM_USER + 4
#define UM_WRITEMSG WM_USER + 5
#define UM_FMTERROR WM_USER + 6
#define UM_FMTSTATUS WM_USER + 7
#define UM_FMTMSG WM_USER + 8