home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PMF300.ZIP / PMFLOPPY.H < prev    next >
C/C++ Source or Header  |  1993-02-06  |  2KB  |  67 lines

  1. /*
  2.            pmfloppy.h
  3.            
  4.            headers for pmfloppy.c
  5.  
  6.            G. Bryant, 1990,1993
  7.            Delta Music Systems
  8.            Released to the public domain
  9.  
  10.    
  11.   Change Log
  12.  
  13.    5-Feb-93   Port to OS/2 2.0-C Set/2
  14.  
  15. */
  16. #ifndef PMFLOPPY_H
  17. #define PMFLOPPY_H
  18.  
  19. #define NUM_IMAGES  20
  20. #define NUM_THREADS 5
  21. #define MAXMSGLEN   127
  22. #define STACK_SIZE    4096
  23. #define MAX_SEG     65536
  24. #define READ_SOURCE 1
  25. #define COPY_TARGET 2
  26. #define EXIT_DSKCPY -1
  27.  
  28. #define DSKIM_ERROR_WRONG_FORMAT 0xffbf
  29. #define DSKIM_ERROR_WRONG_FILE   0xffc0
  30.  
  31. #define BUFSIZE   1024
  32. #define OPENFLAGS (OPEN_FLAGS_DASD | OPEN_SHARE_DENYREADWRITE | OPEN_ACCESS_READWRITE | OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_SEQUENTIAL)
  33.  
  34. // Resource IDs
  35. #define IDR_PMFLOPPY  1
  36.  
  37.  
  38. // Menu IDs
  39. #define IDM_DISK_MENU      2050
  40. #define IDM_READ        2052
  41. #define IDM_WRITE       2053
  42. #define IDM_ABOUT       2054
  43. #define IDM_LOAD        2055
  44. #define IDM_SAVE        2056
  45. #define IDM_DELETE      2057
  46. #define IDM_COMP        2058
  47.  
  48.  
  49. // Dialog IDs
  50. #include "copydlgs.h"
  51.  
  52. // Local messages
  53. #define UM_ERROR   WM_USER + 0
  54. #define UM_STATUS  WM_USER + 1
  55. #define UM_DONE    WM_USER + 2
  56. #define UM_COMPOK  WM_USER + 3
  57. #define UM_COMPERR WM_USER + 4
  58.  
  59. typedef struct _ThreadContext {
  60.   TID    ThID;         // Thread ID for the subprocess
  61.   SEL    selStk;       // stack selector for subprocess
  62.   USHORT ImageNumber;  // Image number this thread is using
  63.   USHORT CompNumber;   // Image number compare is using
  64.   ULONG  ErrorCode;    // Fatal Error generated on thread
  65. } ThreadContext;
  66. #endif
  67.