// wdfpdo.h
PWDFDEVICE_INIT WdfPdoInitAllocate(
[in] WDFDEVICE ParentDevice
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF only]
The WdfPdoInitAllocate method allocates a WDFDEVICE_INIT structure for a framework-based bus driver, which the bus driver uses when reporting a new device.
ParentDevice
[in]A handle to a framework device object that represents the parent device of the new device. The framework device object must represent a functional device object (FDO).
If the operation succeeds, the method returns a pointer to a framework-allocated WDFDEVICE_INIT structure. Otherwise, the method returns NULL.
If a bus driver uses static enumeration, it reports a new device by:
For more information about static enumeration, see Enumerating the Devices on a Bus.
For a code example that uses WdfPdoInitAllocate, see WdfFdoAddStaticChild.