| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [fwd] Re: locking() |
Tue 2002-11-19 21:43, Alexander S. Aganichev (2:203/614.103) wrote to andrew clarke:
> Here's the code which is working in GoldED+:
> if(LockFile((HANDLE)_get_osfhandle(fh), offs, 0L, len, 0L)) return 0;
Ahh! I knew I'd get an answer eventually. ;-) Thank you!
But how did you know to use _get_osfhandle()? (Or did someone else write that?)
Incidentally, _locking(_get_osfhandle(fd), LK_LOCK, 1) still fails, so I
still don't know what sort of value it's expecting for the file handle. I'd
look at the MingW32 C runtime library source, but I can't find it, and
www.mingw.org is down, but never mind all that, I don't need to get
_locking() to work any more!
Regards
Andrew
-- mail{at}ozzmosis.com
--- Msged/NT 6.1.1
* Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267)SEEN-BY: 633/270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.