## Virtual Device Driver Reference for OS/2

[prev][next][parent][TOC]

### VDHQuerySem Parameter - SemStatePtr

SemStatePtr (PVDHSEMSTATE) A pointer to the data area to be filled with the state of the semaphore.

SemStatePtr points to a variable defined in VDMM.INC and structured as follows:

     typedef struct  VDHSemState_s {

             UCHAR   vss_SemType;         /* VDH_EVENTSEM/VDH_MUTEXSEM       */

             UCHAR   vss_fOwned;          /* 0 = Not Owned; 1 = Owned        */

             USHORT  vss_fWaiter;         /* 0 = No one waiting; 1 = Waiting */

             USHORT  vss_cRequest;        /* Request count in mutex case     */

             TID     vss_tid;             /* TID of the owner, if owned      */

     }VDHSEMSTATE;