// ks.h
KSDDKAPI NTSTATUS KsPublishDeviceProfile(
[in] PKSFILTERFACTORY FilterFactory,
[in] PKSDEVICE_PROFILE_INFO Profile
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsPublishDeviceProfile API is called to publish device profile information.
FilterFactory [in]This is the same KSFILTERFACTORY used in the KsInitializeDeviceProfile API.
Profile [in]This is a camera profile of type KSDEVICE_PROFILE_INFO.
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.
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.