fonction WDF_CHILD_LIST_CONFIG_INIT (wdfchildlist.h)

[S’applique uniquement à KMDF]

La fonction WDF_CHILD_LIST_CONFIG_INIT initialise une structure WDF_CHILD_LIST_CONFIG .

Syntaxe

void WDF_CHILD_LIST_CONFIG_INIT(
  [out] PWDF_CHILD_LIST_CONFIG           Config,
  [in]  ULONG                            IdentificationDescriptionSize,
  [in]  PFN_WDF_CHILD_LIST_CREATE_DEVICE EvtChildListCreateDevice
);

Paramètres

[out] Config

Pointeur vers une structure de WDF_CHILD_LIST_CONFIG allouée par le pilote.

[in] IdentificationDescriptionSize

Taille, en octets, de la description d’identification de chaque appareil enfant.

[in] EvtChildListCreateDevice

Adresse d’une fonction de rappel d’événement EvtChildListCreateDevice fournie par le pilote.

Valeur de retour

None

Remarques

La fonction WDF_CHILD_LIST_CONFIG_INIT zéro la structure WDF_CHILD_LIST_CONFIG spécifiée et définit le membre Size de la structure. Ensuite, il définit les membres IdentificationDescriptionSize et EvtChildListCreateDevice sur les valeurs spécifiées.

Pour plus d’informations sur les listes enfants, consultez Énumération dynamique.

Exemples

Pour obtenir un exemple de code qui utilise WDF_CHILD_LIST_CONFIG_INIT, consultez WdfChildListCreate.

Configuration requise

Condition requise Valeur
Plateforme cible Universal
Version KMDF minimale 1.0
En-tête wdfchildlist.h (inclure Wdf.h)
IRQL N’importe quel niveau

Voir aussi

EvtChildListCreateDevice

WDF_CHILD_LIST_CONFIG