Entry Point Implementation

Media driver must implement an entry point function that creates a PDD factory object that is derived from DPhysicalDevice.

Because media drivers are implemented as kernel extensions, use the DECLARE_EXTENSION_PDD() macro as a wrapper around the code that creates your factory object; the following code fragment is typical:

DECLARE_EXTENSION_PDD()
    {
    return new DMyPhysicalDevice;
    } 

where DMyPhysicalDevice is an implementation of DPhysicalDevice.