IResourceList::AddEntry method

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

Translated [in]

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.

Untranslated [in]

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 codeDescription
STATUS_INSUFFICIENT_RESOURCES

Indicates there are no free entries in the list.

 

Remarks

Requirements

Target platform

Universal

Header

Portcls.h (include Portcls.h)

IRQL

PASSIVE_LEVEL

See also

CM_PARTIAL_RESOURCE_DESCRIPTOR

 

 

Send comments about this topic to Microsoft

Show: