Condividi tramite


funzione VHF_CONFIG_INIT (vhf.h)

Utilizzare la funzione VHF_CONFIG_INIT per inizializzare i membri necessari della struttura VHF_CONFIG allocata dal driver di origine HID.

Sintassi

FORCEINLINE
VOID
VHF_CONFIG_INIT(
    _Out_
        PVHF_CONFIG     Config,
#ifdef _KERNEL_MODE
    _In_
        PDEVICE_OBJECT  DeviceObject,
#else
    _In_
        HANDLE          FileHandle,
#endif
    _In_
        USHORT          ReportDescriptorLength,
    _In_reads_bytes_(ReportDescriptorLength)
        PUCHAR          ReportDescriptor    
    )

Parametri

[out] Config

Puntatore alla struttura VHF_CONFIG da inizializzare.

[in] DeviceObject

Puntatore alla struttura DEVICE_OBJECT per il driver di origine HID. Ottenere tale puntatore chiamando WdfDeviceWdmGetDeviceObject e passando l'handle WDFDEVICE ricevuto dal driver nella chiamata WdfDeviceCreate.

Un driver in modalità utente fornisce invece un FileHandle. Per altre info, vedi VHF_CONFIG.

[in] ReportDescriptorLength

Lunghezza del descrittore di report HID contenuto in un puntatore al buffer ReportDescriptor.

ReportDescriptor

Puntatore a un buffer allocato dal driver di origine HID che contiene il descrittore di report HID.

Valore restituito

Nessuno

Fabbisogno

Requisito Valore
client minimo supportato Windows 10
server minimo supportato Nessuna supportata
piattaforma di destinazione Desktop
intestazione vhf.h
libreria VhfKm.lib

Vedere anche

scrivere un driver di origine HID usando VHF (Virtual HID Framework)