Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetsemval()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSEMVAL()
 Determines a semaphore's value
------------------------------------------------------------------------------
 Syntax

     NNETSEMVAL(<nHandle>,[<cServer>|<nConId>]) --> nValue

     Netware: 2.2 and 3.11

 Arguments

     <nHandle>  Designates the semaphore handle that is returned by
     NNETSEMOPN() when the semaphore is opened.

     <cServer>  Designates the name of the file server on which <nHandle>
     has been created.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID for your workstation on
     <cServer>.

 Returns

     NNETSEMVAL() returns the current value of the semaphore <nHandle>.  If
     an error occurs (for example, if the handle is invalid), the function
     returns -1.

 Description

     NOVELL NET SEMAPHOR VALUE
     NNETSEMVAL() allows you to determine the current value of a semaphore.
     The semaphore is specified by a handle.  The file server manages two
     values for each semaphore.  This function determines the semaphore's
     value.  This information has nothing to do with the number of stations
     that have opened <nHandle>.

 Example

     Open semaphore TEST, and determine its current value:

     nHandle=NNETSEMOPN("test")
     ? 'Value:',NNETSEMVAL(nHandle)

See Also: NNETSEMOPC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson