DDHAL_DDMISCELLANEOUS2CALLBACKS

In order to support alpha blitting the DDHAL_DDMISCELLANEOUS2CALLBACKS structure must be filled out in response to a GUID_Miscellaneous2Callbacks request to the GetDriverInfo function of the driver.

typedef struct _DDHAL_DDMISCELLANEOUS2CALLBACKS {
DWORD                               dwSize;
DWORD                               dwFlags;
LPDDHAL_ALPHABLT                    AlphaBlt;
LPDDHAL_SETSPRITEDISPLAYLIST        SetSpriteDisplayList;
LPDDHAL_RESIZE                      Resize;
} DDHAL_DDMISCELLANEOUS2CALLBACKS, *LPDDHAL_DDMISCELLANEOUS2CALLBACKS;

Members

  • dwSize
    Size of the structure. This parameter must be initialized before the structure is used.

  • dwFlags
    Indicates that the AlphaBlt callback is implemented in 32-bit code. You can use one or more of the following flags.

    Flag Description
    DDHAL_MISC2CB32_ALPHABLT Indicates that the AlphaBlt callback is implemented in 32-bit code.
    DDHAL_MISC2CB32_SETSPRITEDISPLAYLIST Indicates that the SetSpriteDisplayList callback is implemented in 32-bit code.
    DDHAL_MISC2CB32_RESIZE Indicates that the Resize callback is implemented in 32-bit code.
  • AlphaBlt
    Pointer to the driver's implementation of the AlphaBlt callback.

  • SetSpriteDisplayList
    Pointer to the driver's implementation of the SetSpriteDisplayList callback.

  • Resize
    Pointer to the driver's implementation of the Resize callback.

Return Values

If AlphaBlt is not supported, DDERR_CURRENTLYNOTAVAIL may be returned in the IpInput->ddRVal for GetDriverInfo, or it may return the structure with the size set, but all other members set to zero.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.