Two presentation parameter attribute identities can be passed, and both will be searched for along the chain of owners of the window hwnd (subject to QPF_NOINHERIT). The first one found satisfies the query. If both idAttrType1 and idAttrType2 are present for the same window, idAttrType1 takes precedence.
If the presentation parameter attribute value is too long to fit in the pAttrValue buffer provided, it is truncated, and the number of bytes copied is returned in cbRetLen. (See also WinSetPresParam and WinRemovePresParam).