Processing Data Returned from DosQNmPipeSemState() (61568)
This article was previously published under Q61568
SUMMARY
DosQNmPipeSemState() returns information in the form of PIPESEMSTATE
structures. In earlier releases, these structures were named "npss".
The following are frequently asked questions involving these
structures:
- Q. How much space do you have to pass to DosQNmPipeSemState() to
hold the PIPESEMSTATE structures returned?
- You can set the variable "pipes" to the number of pipes
associated with the semaphore you pass to DosQNmPipeSemState(),
and then use the following statement to calculate the buffer
size:
USHORT PipeInfoSize=((3*pipes)+1)*sizeof(PIPESEMSTATE);
- Q. In what order does DosQNmPipeSemState() return the PIPESEMSTATE
structures?
- An application cannot safely make any assumptions about the
order returned, because the order is not specified. Since the
order is not specified, the order may change; therefore, do not
rely on any order that may appear in the current releases of
OS/2.
Modification Type: |
Major |
Last Reviewed: |
7/30/2001 |
Keywords: |
KB61568 |
|