home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20110 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1009 b   |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!clark!pacifier!nathans
  3. From: nathans@pacifier.rain.com (Nathan Silva)
  4. Subject: DOS file locking
  5. Message-ID: <1993Jan23.014932.20065@pacifier.rain.com>
  6. Organization: Pacifier BBS
  7. Date: Sat, 23 Jan 1993 01:49:32 GMT
  8. Lines: 21
  9.  
  10.  
  11.  
  12. I am writing a small Windows application in Turbo C++.  I'd like
  13. to lock a region of a file so that other processes can still read
  14. it, but cannot write to it.  However, when I use the standard
  15. lock/unlock functions, other processes cannot read the locked region.
  16.  
  17. How can I do "read-only" locking?
  18.  
  19. ObSetupInfo: Yes, SHARE is loaded.  I'm using DOS 5.0, Windows 3.1,
  20.              Turbo C++ for Windows 3.0.
  21.  
  22. Please reply by e-mail to nathans@pacifier.rain.com.
  23.  
  24. Nathan
  25.  
  26. -- 
  27.  -------------------------------------------------------
  28. | Nathan Silva               |                          |
  29. | nathans@pacifier.rain.com  | Do the World News Polka! |
  30.  -------------------------------------------------------
  31.