KoDeviceInitialize function (kcom.h)

This function is intended for internal use only.

The KoDeviceInitialize function adds a kernel COM create-item entry to the specified device object.

Syntax

COMDDKAPI NTSTATUS KoDeviceInitialize(
  [in] PDEVICE_OBJECT DeviceObject
);

Parameters

[in] DeviceObject

Pointer to a device object. The device object is assumed to contain a KSOBJECT_HEADER in its device extension.

Return value

Returns STATUS_SUCCESS if successful. Otherwise, it returns a memory allocation error.

Requirements

Requirement Value
Target Platform Universal
Header kcom.h (include Kcom.h)
Library Ks.lib