## Physical Device Driver Reference

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

### HANDLELIST Field - cMaxHandles

cMaxHandles (USHORT) Number of handles that can be accepted in the handles array. This field must be set by the caller.

The default HANDLELIST type provides room for one handle. In this case, cMaxHandles must be set to 1. In the following example, 10 handles are expected:

    #define MAX_HANDLE_COUNT 10

    #define HLISTSIZE(c) ( sizeof(HANDLELIST) +  \

                         (c-1) * sizeof(HADAPTER) )

    UCHAR HandleList[HLISTSIZE(MAX_HANDLE_COUNT)];

    PHANDLELIST pHndList = (PHANDLELIST) HandleList;

    pHndList->cMaxHandles = MAX_HANDLE_COUNT;