PVOID
VC_AllocMem(
PDEVICE_INFO pDevInfo,
ULONG Length
);
The VC_AllocMem function allocates a specified amount of nonpaged memory for use by a kernel-mode video capture driver.
Parameters
pDevInfo
Pointer to the DEVICE_INFO structure returned by VC_Init.
Length
Size, in bytes, of memory to be allocated.
Return Value
Returns a pointer to the allocated memory, if the operation succeeds. Otherwise returns NULL.
Comments
The VC_AllocMem function calls ExAllocatePool, with a pool type of NonPagedPool. The allocated memory can be referenced by the driver’s InterruptAcknowledge and CaptureService function.