MbbDeviceInitialize function (mbbcx.h)

The MbbDeviceInitialize method registers the client driver's MBB-specific callback functions.

Syntax

NTSTATUS MbbDeviceInitialize(
  WDFDEVICE          Device,
  PMBB_DEVICE_CONFIG Config
);

Parameters

Device

A handle to a framework device object the client driver obtained from a previous call to WdfDeviceCreate.

Config

A pointer to a client driver-allocated and initialized MBB_DEVICE_CONFIG structure.

Return value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method may return an appropriate NTSTATUS error code.

This method might return failure in low resource situations.

Remarks

The client driver must call this method after it calls WdfDeviceCreate from within EVT_WDF_DRIVER_DEVICE_ADD.

For more information, see Initialize the device.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Target Platform Universal
Minimum KMDF version 1.27
Header mbbcx.h
Library mbbcxstub.lib
IRQL PASSIVE_LEVEL