#include <ntifs.h> #include <wdf.h>
// Store device context WdfDeviceSetExtension(device, pMyCamera); xhc camera driver windows 10
// Allocate and initialize device context pMyCamera = (PMY_CAMERA)ExAllocatePoolWithTag(NonPagedPool, sizeof(MY_CAMERA), 'MCAM'); if (pMyCamera == NULL) { WdfObjectDelete(device); return STATUS_INSUFFICIENT_RESOURCES; } #include <ntifs