| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | API List? |
Hello Rich! Monday May 27 1996, Rich Veraa writes to All: RV> OS/2 API calls? I just got VP/2 and tried Use the included api reference ( view VPCP1.INF+VPCP2.INF+VPCP3.INF ) ( those files are located in \vp\doc ) RV> Function LockFile(Var F; LockStart: LongInt; LockLength: LongInt): RV> Word; Look for DosSetFileLocks, from what I can see in the reference, you will have to define a starting position and the length of the region. With TimeOut ( param 4 ) you can specify how much time ( in ms ) your application should wait before giving up if it cannot get that lock. RV> Function GetTempName(FN: String): String; Maybe use the timer or a random function and convert it to a filename ( better first check if it exists ) There is a nice example on ftp://ftp.fprint.co.uk in the subdirectory \fprint\vpascal, it is called OS2EXEC.ZIP. Although you will need to modify it a bit, since the part you will need is used for naming 'random named' named pipes. ==> Gerard/2 - member of team os/2 - 1000521{at}ibk.fnt.hvu.nl --- Fmail/2 1.02 Registered* Origin: Living in interesting times (2:283/203.18) SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 @PATH: 283/203 2 512 280/801 270/101 712/515 711/808 934 |
|
| 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™.