Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The KsAddObjectCreateItemToObjectHeader function adds the specified create-item to an empty item in the previously allocated create item list for this object header. An empty item is signified by a NULL create dispatch function in the entry. This function assumes that the caller is serializing multiple changes to the create items list.
Syntax
KSDDKAPI NTSTATUS KsAddObjectCreateItemToObjectHeader(
[in] KSOBJECT_HEADER Header,
[in] PDRIVER_DISPATCH Create,
[in] PVOID Context,
[in] PWSTR ObjectClass,
[in, optional] PSECURITY_DESCRIPTOR SecurityDescriptor
);
Parameters
[in] Header
Points to the object header that contains the previously allocated child- create table.
[in] Create
Specifies the create dispatch function to use.
[in] Context
Specifies the context parameter.
[in] ObjectClass
Specifies a pointer to a NULL-terminated character string that is used for comparison on create requests. This pointer must remain valid while the object is active.
[in, optional] SecurityDescriptor
Specifies the security descriptor. This must remain valid while the object is active.
Return value
The KsAddObjectCreateItemToObjectHeader function returns STATUS_SUCCESS if an empty create item slot was found and the item was added. If unsuccessful, it returns STATUS_ALLOTTED_SPACE_EXCEEDED.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ks.h (include Ks.h) |
Library | Ks.lib |