## Virtual Device Driver Reference for OS/2

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

### VDHEnumerateVDMs

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function is used to run a worker function for each DOS session in the system. The worker function can stop the enumeration by returning 0.

    #include mvdm.h

    PENUMHOOK    WorkerFcn;  /*  Worker function */

    ULONG        FcnData;    /*  Function-specific data to be passed each call */

    BOOL         rc;

    rc = VDHEnumerateVDMs(WorkerFcn, FcnData);