## Virtual Device Driver Reference for OS/2

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

### VDHCreateSem

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function is used to create an event or mutex semaphore.

    #include mvdm.h

    PHVDHSEM    SemHandlePointer;  /*  Semaphore handle address */

    ULONG       SemType;           /*  Type of semaphore of create */

    BOOL        rc;

    rc = VDHCreateSem(SemHandlePointer, SemType);