home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PMFLOPPY.ZIP / PMFLOPPY.H < prev    next >
C/C++ Source or Header  |  1990-04-23  |  1KB  |  47 lines

  1. /* pmfloppy.h */
  2.  
  3. #define STACK_SIZE    6000
  4. #define READ_SOURCE 1
  5. #define COPY_TARGET 2
  6. #define EXIT_DSKCPY -1
  7.  
  8. #define DSKCPY_ERROR_WRONG_FORMAT 0xffbf
  9.  
  10. #define BUFSIZE   1024
  11. #define OPENFLAGS (OPEN_FLAGS_DASD | OPEN_SHARE_DENYREADWRITE | OPEN_ACCESS_READWRITE)
  12. #define BSPBLK BIOSPARAMETERBLOCK
  13.  
  14. // Note, for the lockdrive/unlockdrive macros, the global variable _lockCmd
  15. // must be accessable and set to zero!
  16.  
  17. #define lockdrive(hf)   (DiskError = DosDevIOCtl(0L, &_lockCmd, DSK_LOCKDRIVE,   IOCTL_DISK, hf))
  18. #define unlockdrive(hf) (DiskError = DosDevIOCtl(0L, &_lockCmd, DSK_UNLOCKDRIVE, IOCTL_DISK, hf))
  19.  
  20. // Resource IDs
  21. #define IDR_PMFLOPPY  1
  22.  
  23.  
  24. // Menu IDs
  25. #define IDM_DISK_MENU      2050
  26. #define IDM_FORMAT      2051
  27. #define IDM_READ        2052
  28. #define IDM_WRITE       2053
  29. #define IDM_ABOUT       2054
  30. #define IDM_EXIT          2060
  31.  
  32.  
  33. // Dialog IDs
  34. #include "copydlgs.h"
  35.  
  36. // Local messages
  37. #define UM_READERROR    WM_USER + 0
  38. #define UM_READSTATUS   WM_USER + 1
  39. #define UM_READMSG      WM_USER + 2
  40. #define UM_WRITEERROR   WM_USER + 3
  41. #define UM_WRITESTATUS  WM_USER + 4
  42. #define UM_WRITEMSG     WM_USER + 5
  43. #define UM_FMTERROR     WM_USER + 6
  44. #define UM_FMTSTATUS    WM_USER + 7
  45. #define UM_FMTMSG       WM_USER + 8
  46.  
  47.