IResourceList::AddEntry method (portcls.h)

The AddEntry method adds an entry to a resource list.

Syntax

NTSTATUS AddEntry(
  [in] PCM_PARTIAL_RESOURCE_DESCRIPTOR Translated,
  [in] PCM_PARTIAL_RESOURCE_DESCRIPTOR Untranslated
);

Parameters

[in] Translated

Pointer to a translated version of the entry. This parameter points to a CM_PARTIAL_RESOURCE_DESCRIPTOR structure containing the translated version of the entry to be added.

[in] Untranslated

Pointer to an untranslated version of the entry. This parameter points to a CM_PARTIAL_RESOURCE_DESCRIPTOR structure containing the untranslated (or "raw") version of the entry to be added.

Return value

AddEntry returns STATUS_SUCCESS if the call was successful. Otherwise, the method returns an appropriate error code. The following table shows some of the possible return status codes.

Return code Description
STATUS_INSUFFICIENT_RESOURCES
Indicates there are no free entries in the list.

Requirements

Requirement Value
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL PASSIVE_LEVEL

See also

CM_PARTIAL_RESOURCE_DESCRIPTOR

IResourceList