## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Next_Chain_Element - Parameters

next_element_ptr (PDSPINSTL_CHAIN) - input Returns a pointer to the specified chain element.

position_flag (USHORT) - input A flag that indicates which data chain element is specified by the caller:

0 Indicates the head element of the chain

1 Indicates the tail element of the chain

2 Indicates the data element that follows the data element that is pointed to by the existing_element_ptr input argument

3 Indicates the data element that precedes the data element that is pointed to by the existing_element_ptr input argument

existing_element_ptr (PDSPINSTL_CHAIN) - input Pointer to a data chain element. Used only if position_flag is set to 2 or 3.

rc (ULONG) - returns Return codes.

This service function returns the following values:

0 Success
1 Next element found within the chain