IDriverEntry::OnInitialize method

[Applies to UMDF 1.x only]

The OnInitialize method performs any operations that are necessary to initialize a driver.

Syntax


HRESULT OnInitialize(
  [in]  IWDFDriver *pWdfDriver
);

Parameters

pWdfDriver [in]

A pointer to the IWDFDriver interface for the framework driver object that represents the driver that is loaded in the host process.

Return value

OnInitialize returns S_OK if the driver completed its global initialization. Otherwise, this method returns one of the error codes that are defined in Winerror.h. If the driver returns an error code, the framework will not load the driver.

Remarks

The framework creates a new driver object for each driver that is loaded in the driver host process. When a driver enters the system, the framework calls OnInitialize to notify the driver and passes the IWDFDriver interface in the call.

Requirements

Header

Wudfddi.h (include Wudfddi.h)

See also

IDriverEntry
IWDFDriver

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft