NWCloseSemaphore(3nw)


NWCloseSemaphore -- closes semaphore

Synopsis

   #include <nwsync.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWCloseSemaphore (NWCONN_HANDLE conn, nuint32 semHandle);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare® server connection handle.

semHandle
(IN) Specifies the semaphore handle obtained when the semaphore was opened by NWOpenSemaphore.

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x89FF
INVALID_SEMAPHORE_HANDLE, LOCK_ERROR

Notices

If the requesting process is the last process to have this semaphore open, the semaphore is deleted.

Services

Synchronization

NCP calls

0x2222 32 4 Close Semaphore

References

NWExamineSemaphore(3nw), NWOpenSemaphore(3nw), NWSignalSemaphore(3nw), NWWaitOnSemaphore(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.