KsPublishDeviceProfile - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

KSDDKAPI NTSTATUS KsPublishDeviceProfile(
  [in] PKSFILTERFACTORY       FilterFactory,
  [in] PKSDEVICE_PROFILE_INFO Profile
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-kspublishdeviceprofile)

KsPublishDeviceProfile function

Description

The KsPublishDeviceProfile API is called to publish device profile information.

Parameters

FilterFactory [in]

This is the same KSFILTERFACTORY used in the KsInitializeDeviceProfile API.

Profile [in]

This is a camera profile of type KSDEVICE_PROFILE_INFO.

Return value

Camera profile information will only be associated with the KSCATEGORY_VIDEO_CAMERA interface category. Any filter factory created without this interface category and attempting to register a camera profile will result in this API returning a STATUS_INVALID_PARAMETER.

Remarks

This API will be called repeatedly for each profile the camera driver supports. Each call may have different set of concurrency and data range information. The ProfileId field of the KSCAMERA_PROFILE_INFO must be unique. If the same ProfileId is used and the content of the profile information is different, the subsequent call will overwrite the earlier profile information.