home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11042a < prev    next >
Text File  |  1990-09-19  |  991b  |  27 lines

  1.  
  2.  
  3.  
  4.  
  5.               1. Create queue via DosCreateQueue.
  6.               2. Block reading queue via DosReadQueue.
  7.               3. DosGetSeg on passed pointer to insure access.
  8.               4. DosSizeSeg to insure valid segment length.
  9.               5. Process the request represented by the record.
  10.               6. DosFreeSeg to free shared memory segment.
  11.               7. Go to #2.
  12.  
  13.  
  14.  
  15.               1. Open the queue via DosOpenQueue.
  16.               2. Allocate the memory segment via DosAllocSeg.
  17.               3. Construct the queue record in the memory segment.
  18.               4. Give the segment to the queue owner via DosGiveSeg
  19.                  (Owners Process ID is returned from DosOpenQueue).
  20.               5. Write record to queue via DosWriteQueue.
  21.               6. Free the memory segment via DosFreeSeg (the segment
  22.                  will not actually be destroyed since access was given
  23.                  to the queue owner).
  24.               7. Go to #2.
  25.  
  26.  
  27.