wout@idca.tds.PHILIPS.nl (W. Smit) (03/28/91)
Hello
I have a problem with the use of semaphores in a C program running under
MS-Windows. I use the NetWare C Interface version 1.2. The network I use is
Level II V2.15 Rev. C.
I use the following small peace of code:
wConNum = GetConnectionNumber();
if (wConNum == 0)
return (FALSE);
else
{
strcpy(szSemName,"Wout");
RetCode = OpenSemaphore(szSemName,1,&SemHnd,&NrOpen);
.....
}
RetCode should be 0, sometimes it is, but most of the time it is 3. According
the NetWare manuels 3 means DOS_PATH_NOT_FOUND. I wonder why it sometimes
returns 3 and what I can do about it.
Further, if RetCode is 0 and I execute the same program on a second terminal,
NrOpen is always 1 never 2. So what is wrong ? I use the types and the include
files as specified in the manuels.
Can anybody help me ???
Wout Smit, Philips Information Systems, Apeldoorn, The Netherlands.
mail: wout@idca.tds.philips.nl
fax: 0031 55 432041
voice: 0031 55 432858