home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PMF202.ZIP / PMFLOPPY.H < prev    next >
C/C++ Source or Header  |  1990-05-31  |  1KB  |  54 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_EXIT          2060
  34.  
  35.  
  36. // Dialog IDs
  37. #include "copydlgs.h"
  38.  
  39. // Local messages
  40. #define UM_ERROR   WM_USER + 0
  41. #define UM_STATUS  WM_USER + 1
  42. #define UM_DONE    WM_USER + 2
  43. #define UM_COMPOK  WM_USER + 3
  44. #define UM_COMPERR WM_USER + 4
  45.  
  46. typedef struct _ThreadContext {
  47.   TID    ThID;         // Thread ID for the subprocess
  48.   SEL    selStk;       // stack selector for subprocess
  49.   USHORT ImageNumber;  // Image number this thread is using
  50.   USHORT CompNumber;   // Image number compare is using
  51.   USHORT ErrorCode;    // Fatal Error generated on thread
  52. } ThreadContext;
  53. #endif
  54.