hwnd (HWND) - input

      Window handle whose presentation is to be queried.

    idAttrType1 (ULONG) - input

      First presentation parameter to retrieve.

      This identifies the first presentation parameter attribute to be queried. It can be zero to reference no presentation parameter attribute.

    idAttrType2 (ULONG) - input

      Second presentation parameter to retrieve.

      This identifies the second presentation parameter attribute to be queried. It can be zero to reference no presentation parameter attribute.

    pidAttrTypeFound (PULONG) - in/out

      Presentation parameter attribute found.

      This identifies which of the presentation parameter attributes idAttrType1 and idAttrType2 has been found. This parameter can be passed as NULL (if, for example, only one attribute is being queried).

    cbAttrValueLen (ULONG) - input

      Size of the buffer pointed to by the pAttrValue parameter.

    pAttrValue (PPVOID) - output

      Attribute value.

      The value of the presentation parameter attribute found.

    flOptions (ULONG) - input

      Options controlling the query.

      Any of the following values can be ORed together:

      QPF_NOINHERIT

        For the purposes of this query, presentation parameters are not inherited from the owners of the window specified by hwnd. If not specified (default), presentation parameters are inherited.
      QPF_ID1COLORINDEX
        idAttrType1 refers to a color index presentation parameter attribute, the value of which, if found, is to be converted to RGB before being passed back in pAttrValue.
      QPF_ID2COLORINDEX
        idAttrType2 refers to a color index presentation parameter attribute, the value of which, if found, is to be converted to RGB before being passed back in pAttrValue.
      QPF_PURERGBCOLOR
        Specifies that either or both of idAttrType1 and idAttrType2 reference RGB color, and that these colors must be pure. This is necessary when specifying text foreground and background colors. This is applied after QPF_ID1COLORINDEX and QPF_ID2COLORINDEX.

      cbRetLen (ULONG) - returns

        Length of presentation parameter value. passed back.

        Zero

          Presentation parameter not found or error occurred
        Other
          Length of presentation parameter value passed back in pAttrValue.


        [Back] [Next]