## Virtual Device Driver Reference for OS/2

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

### VDHEnumerateVDMs - Parameters

WorkerFcn (PENUMHOOK) Worker function, the routine that does the work.

The worker function uses the following interface:

     BOOL HOOKENTRY fnworker (hVDM, ulData)

          ENTRY         hVDM   - Handle to DOS session

                        ulData - Function-specific data

          EXIT-SUCCESS  Return a non-zero value, enumeration continues

          EXIT-FAILURE  Return 0, stop enumeration

FcnData (ULONG) Function-specific data to be passed each call.

rc (BOOL) - returns

Success If the function is successful, it returns a nonzero value.

Failure If the function fails, it returns 0 indicating that a worker function stopped the enumeration.