home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / pmflp301.zip / diskcopy / pmfloppy.h < prev    next >
C/C++ Source or Header  |  1996-12-28  |  2KB  |  60 lines

  1. /* pmfloppy.h */
  2. #ifndef PMFLOPPY_H
  3. #define PMFLOPPY_H
  4.  
  5. #define NUM_IMAGES  20
  6. #define NUM_THREADS 5
  7. #define MAXMSGLEN   127
  8. #define STACK_SIZE    4096
  9. #define MAX_SEG     65536
  10. #define READ_SOURCE 1
  11. #define COPY_TARGET 2
  12. #define EXIT_DSKCPY -1
  13.  
  14. #define DSKIM_ERROR_WRONG_FORMAT 0xffbf
  15. #define DSKIM_ERROR_WRONG_FILE   0xffc0
  16.  
  17. #define BUFSIZE   1024
  18. #define OPENFLAGS (OPEN_FLAGS_DASD | OPEN_SHARE_DENYREADWRITE | OPEN_ACCESS_READWRITE)
  19.  
  20. /* Resource IDs*/
  21. #define IDR_PMFLOPPY  1
  22.  
  23.  
  24. /* Menu IDs*/
  25. #define IDM_DISK_MENU      2050
  26. #define IDM_READ        2052
  27. #define IDM_WRITE       2053
  28. #define IDM_ABOUT       2054
  29. #define IDM_LOAD        2055
  30. #define IDM_SAVE        2056
  31. #define IDM_DELETE      2057
  32. #define IDM_COMP        2058
  33. #define IDM_DUPLICATE    2059
  34. #define IDM_COPYCHECK    2060
  35. #define IDM_FLOPPY_TO_FILE    2061
  36. #define IDM_FILE_TO_FLOPPY    2062
  37. #define IDM_EXIT          2065
  38.  
  39.  
  40. /* Dialog IDs*/
  41. #include "copydlgs.h"
  42. #include "copy.h"
  43.  
  44. /* Local messages*/
  45. #define UM_ERROR   WM_USER + 0
  46. #define UM_STATUS  WM_USER + 1
  47. #define UM_DONE    WM_USER + 2
  48. #define UM_COMPOK  WM_USER + 3
  49. #define UM_COMPERR WM_USER + 4
  50. #define UM_DESTDISK    WM_USER + 5
  51.  
  52. typedef struct _ThreadContext {
  53.   TID    ThID;         /* Thread ID for the subprocess*/
  54.   SEL    selStk;       /* stack selector for subprocess*/
  55.   USHORT ImageNumber;  /* Image number this thread is using*/
  56.   USHORT CompNumber;   /* Image number compare is using*/
  57.   USHORT ErrorCode;    /* Fatal Error generated on thread*/
  58. } ThreadContext;
  59. #endif
  60.